• 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: Trying to understand -awakeFromNib problem [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Trying to understand -awakeFromNib problem (From: Graham Cox <email@hidden>)
 >Re: Trying to understand -awakeFromNib problem (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Is there a cocoa treeview?
  • Next by Date: Re: Make a solid line look like 3D
  • Previous by thread: Re: Trying to understand -awakeFromNib problem
  • Next by thread: Question about direct vs accessor....PLEASE IGNORE...WILL NOT HAPPEN AGAIN :-) ..APOLOGIES
  • Index(es):
    • Date
    • Thread