RE: Presetting instance variables when nib-loading
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.