Re-hi,
implementing Alexander's idea, I wrote this code to load Nibs ending with
"Connector":
- (void)fetchAndInitializeConnectors {
// Search all NIB files ending with "connector" and load them
for (NSString * path in [[NSBundle mainBundle]
pathsForResourcesOfType:@"nib" inDirectory:@"."]) {
NSString * name = [[path lastPathComponent]
stringByDeletingPathExtension];
if ([name hasSuffix:@"Connector"]) {
[NSBundle loadNibNamed:name owner:self];
}
}
}
However, I end up in a cycle, whereby the call to [NSBundle loadNibNamed:name
owner:self] generates a (unexpected) callback to -awakeFromNib. How come? Is
this normal behavior?
This is not the case if I substitute nil to self in [NSBundle loadNibNamed:name
owner:self];
Thanks a lot!
Vincent_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]