Re: Is cascading Nib Loading from -awakeFromNib permissible?
Re: Is cascading Nib Loading from -awakeFromNib permissible?
- Subject: Re: Is cascading Nib Loading from -awakeFromNib permissible?
- From: Stuart Malin <email@hidden>
- Date: Thu, 12 Mar 2009 05:35:47 -1000
On Mar 11, 2009, at 1:37 PM, Stuart Malin wrote:
Further, the second Nib I am loading has no references back to the
controller, except as File's Owner.
And that's enough to get awakeFromNib'd.
<snip>
Interesting -- there must be some further distinctions here. I have
another controller, not instantiated by being included in a Nib
file, but by alloc & init. This controller manages an ensemble of
entities that are each loaded from (distinct) Nib files. This
controller receives no calls to an -awakeFromNib method (I didn't
have one there, but just put one there to see if it would receive
calls for each Nib loaded). So, this scenario of receiving -
awakeFromNib calls as a consequence of being some loaded nib's
File's Owner seems to depend on just how the object invoking -
loadNibNamed: was itslef invoked.
For the record, I was mistaken. I must have done something incorrect
when I tested this before. This other controller does in fact receive -
awakeFromNib calls for each Nib it loads of which it is the File's
Owner. Hence, there is no distinction between whether the controller
itself had been loaded from a Nib or not.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden