• 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: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem) (From: Vincent Habchi <email@hidden>)
 >Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem) (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
  • Next by Date: Re: Delay in reading cookie using NSHttpCookieStorage
  • Previous by thread: Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
  • Next by thread: Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
  • Index(es):
    • Date
    • Thread