Re: Trying to understand -awakeFromNib problem [SOLVED]
Re: Trying to understand -awakeFromNib problem [SOLVED]
- Subject: Re: Trying to understand -awakeFromNib problem [SOLVED]
- From: Graham Cox <email@hidden>
- Date: Mon, 26 Oct 2009 10:00:37 +1100
Gah! That was it - seems I actually added a [super awakeFromNib] at
some point to one of my classes during the refactoring for reasons
that escape me now. Removing it fixes the issue.
Thanks for the help guys (off-list too).
--Graham
On 26/10/2009, at 2:53 AM, 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