• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Nibs help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Multiple Nibs help? (From: Hasan Diwan <email@hidden>)

  • Prev by Date: Re: Multiple Nibs help?
  • Next by Date: Creator code and file extension
  • Previous by thread: Re: Multiple Nibs help?
  • Next by thread: Creator code and file extension
  • Index(es):
    • Date
    • Thread