On Mar 5, 2011, at 11:00 AM, Matt Neuburg wrote:

> On Fri, 04 Mar 2011 10:21:38 +0100, Andreas Grosam <agro...@onlinehome.de> 
> said:
>> 
>> Unfortunately, due to the problem described previously, -awakeFromNib does 
>> not seem to be always appropriate for its intended use as described in the 
>> reference. There are also subtle differences between iOS and Mac OS.
>> 
> I'm not grasping where there can be any source of confusion here. 
> awakeFromNib is very simple: it is sent to an object after that object is 
> instantiated from a nib. That's straightforward and dependable and clear - 
> provided you know what a nib is, of course. The only "subtle difference" 
> between Mac OS X and iOS in this regard is that in iOS you are enjoined to 
> call super in your implementation. (There are some memory management 
> differences for objects instantiation from nibs between Mac OS X and iOS, but 
> that's a different matter.)

Okay, I was just wrong about this. On iOS, a UIViewController's awakeFromNib is 
called if the UIViewController is instantiated from a nib. But on Mac OS X, an 
NSViewController's awakeFromNib is called both if the NSViewController is 
instantiated from a nib and if a nib is loaded with that NSViewController 
(already in existence, obviously) as owner. That is a *profound* difference 
between the two. Sorry about that. m.

--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com


_______________________________________________

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