Le 6 juil. 2011 à 17:09, Kyle Sluder a écrit :

> On Wed, Jul 6, 2011 at 7:08 AM, Vincent Habchi <vi...@macports.org> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to