Re: Multiple Nibs help?
Re: Multiple Nibs help?
- Subject: Re: Multiple Nibs help?
- From: Ambroise Confetti <email@hidden>
- Date: Thu, 9 Oct 2003 00:14:11 +0200
- (void)windowControllerDidLoadNibName:(NSString *)s {
[super windowControllerDidLoadNibName:s];
[[[[NSApp mainMenu] itemWithTitle:@"File"] submenu]
addItemWithTitle:@"Open URL" action:@selector(newURL:)
keyEquivalent:@"l"]; // keyEquivalent doesn't seem to have any effect
either
I don't think windowControllerDidLoadNibName: is actually called when a
nib file is loaded. There is a method called
windowControllerDidLoadNib: but it is only called after the nib file
containing the document window has been loaded.
NSBundle documentation says awakeFromNib is called on the owner object
after the nib file has been loaded, but it seems rather strange to me,
I believe this is a mistake.
Anyway, isn't loading a nib file a synchronous process? (I think so,
but this is still a question, not an affirmation.)
Ambroise
http://www.cellulo.info/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.