• 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 and -awakeFromNib problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple NIBs and -awakeFromNib problems


  • Subject: Re: Multiple NIBs and -awakeFromNib problems
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 28 Aug 2001 13:16:49 +0200

Jeffrey,

>>>>>> Jeffrey J Barbose (JJB) wrote at Mon, 27 Aug 2001 16:24:32 -0700:
JJB> however, when i choose a menu item calls MyController's -showWindow,
JJB> MyController's -awakeFromNib gets called AGAIN. Note that
JJB> MyController is NOT instantiated in the MyController.nib file, but
JJB> MyController set as the File's Owner's class, as is required.
JJB>
JJB> My understanding was that only the instances (windows, other
JJB> controllers) in the nib file receive -awakeFromNib.

Perhaps you might want to reread NSNibAwaking.html ;) Anyway, the File Owner
gets awakeFromNib (since it is, in a sense -- through a reference -- there,
and since you can easily ignore the method, but you might have serious
problem if you happen to need it and it was not sent).
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Multiple NIBs and -awakeFromNib problems (From: Jeffrey J Barbose <email@hidden>)

  • Prev by Date: Re: Learning to program Cocoa
  • Next by Date: Re: Yet another stupid newbie's question
  • Previous by thread: Re: Multiple NIBs and -awakeFromNib problems
  • Next by thread: Re: Putting a newline in a NSTextField
  • Index(es):
    • Date
    • Thread