• 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: Presetting instance variables when nib-loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Presetting instance variables when nib-loading


  • Subject: RE: Presetting instance variables when nib-loading
  • From: Jerry LeVan <email@hidden>
  • Date: Fri, 26 Mar 2004 11:14:15 -0500

Alternatively, is there any way to prevent -awakeFromNib from being
called on the controller being awoken as the File Owner in a secondary
nib? The idea here is to prevent -awakeFromNib from being executed more
than once, without having to implement an entire separate controller
class for the one outlet and one method the sheet I'm loading needs. I
could put the sheet in the main nib, but Apple keeps telling us not to
put more than one window into one nib. Thoughts?

Could you increment an instance variable when awakeFromNib is invoked.
Since the variables are initialized with zero you could tell if
awakeFromNib had already been invoked...

Jerry
_______________________________________________
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.


  • Follow-Ups:
    • Re: Presetting instance variables when nib-loading
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Access to ADC TV (142 free sessions ?)
  • Next by Date: NSView and Scrolling
  • Previous by thread: Re: Presetting instance variables when nib-loading
  • Next by thread: Re: Presetting instance variables when nib-loading
  • Index(es):
    • Date
    • Thread