Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
- Subject: Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
- From: Vincent Habchi <email@hidden>
- Date: Wed, 06 Jul 2011 17:31:24 +0200
Le 6 juil. 2011 à 17:09, Kyle Sluder a écrit :
> On Wed, Jul 6, 2011 at 7:08 AM, Vincent Habchi <email@hidden> wrote:
>> However, I end up in a cycle, whereby the call to [NSBundle loadNibNamed:name owner:self] generates a (unexpected) callback to -awakeFromNib. How come? Is this normal behavior?
>
> This is normal behavior on Mac OS X. It is not normal behavior on iOS.
>
> On Mac OS X, all top-level objects get an -awakeFromNib. On iOS,
> top-level objects do not get -awakeFromNib.
Thanks Kyle. I simply wasn't expecting that -awakeFromNib would be called from inside the NIB being loaded. I hadn't figured out that the "File's owner" placeholder was considered to be a *real* object, and not just, as the name implied, a mere placeholder (or link).
Have a nice day!
Vincent_______________________________________________
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