• 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: Initialisation and awakeFromNib being called multiple times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initialisation and awakeFromNib being called multiple times


  • Subject: Re: Initialisation and awakeFromNib being called multiple times
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 27 Sep 2006 08:30:10 -0700
  • Thread-topic: Initialisation and awakeFromNib being called multiple times

On Wed, 27 Sep 2006 09:30:29 +0800, "Marc Wan"
<email@hidden> said:
>hello!
>
>  I have a Cocoa Application with a Controller class, which controls the
>main application window (the app shows only one window and goes away when
>that window closes).  The Controller class is also, however, the File's
>Owner for my application's Preferences dialog nib and its classes.  From
>what I can see in the debugger, the Controller's -awakeFromNib method is
>called twice, once for each Nib, and that seems quite reasonable.
>
>  Now, the problem is, I have some initialisation code I want to execute
>only after the entire first nib is loaded and all the various IBOutlets have
>been set up by the loading code.  I don't want it to be executed when the
>Preferences dialog is being shown.

Then why did you have the main window controller class also be the
Preferences nib files owner class? m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: no control of NSSlider interval
  • Next by Date: Re: Dragging a borderless window with a sheet displayed
  • Previous by thread: Re: Initialisation and awakeFromNib being called multiple times
  • Next by thread: many to many - array controller binding confusion - help!
  • Index(es):
    • Date
    • Thread