Re: Trying to understand -awakeFromNib problem
Re: Trying to understand -awakeFromNib problem
- Subject: Re: Trying to understand -awakeFromNib problem
- From: Roland King <email@hidden>
- Date: Mon, 26 Oct 2009 00:22:26 +0800
Where's that documented??? I looked for that when I saw the original
question. For iPhone it's documented under NSObject UIKit Additions
Reference, for 10.6 it's under NSNibAwakingProtocol which doesn't show
up anywhere as an implemented protocol of NSObject.
I'm sure you're right but I've tried every search I can reasonably
think of in the documentation and I can't find it.
On 25-Oct-2009, at 11:53 PM, Jim Correia wrote:
On Oct 25, 2009, at 7:53 AM, Graham Cox wrote:
Then, running on 10.5.(8) I stared to get an error that the object
<new class derived from new base class> did not respond to -
awakeFromNib. I'd not previously seen this error until I refactored
my code. Sure enough my new base class and its new fork don't
implement awakeFromNib because they don't need to. On 10.6 there is
no error. On 10.5.8 I get the error, suggesting that 10.6 first
checks whether -awakeFromNib is implemented and 10.5 does not.
Do your controller subclasses send [super awakeFromNib]?
NSObject implements -awakeFromNib on 10.6 and later (but not
previously.)
- Jim_______________________________________________
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
_______________________________________________
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