• 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: + (void) initialize not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: + (void) initialize not getting called


  • Subject: Re: + (void) initialize not getting called
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 24 Jul 2011 18:27:33 -0400

Thanks all. I figured out what I was doing wrong. I was expecting a higher level class (DBString) to call a DBWord method, when it bypasses DBWord altogether if it has shared data of it's own.

If I delete all shared data, initialize is called correctly.


On Jul 24, 2011, at 5:02 PM, Jens Alfke wrote:

>
> On Jul 24, 2011, at 12:59 PM, Andy Lee wrote:
>
>> Another thought -- is it possible you have a subclass of DBWord that implements +initialize and needs to call super?
>
> +initialize methods shouldn’t call super. The runtime sends the message separately to each class in the hierarchy.
>
> As to the original question — I don’t know why +initialize wouldn’t be called. The code looks OK to me.
>
> —Jens

_______________________________________________

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: 
 >+ (void) initialize not getting called (From: Ken Tozier <email@hidden>)
 >Re: + (void) initialize not getting called (From: Andy Lee <email@hidden>)
 >Re: + (void) initialize not getting called (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Does anyone else dislike Xcode 4?
  • Next by Date: Re: Does anyone else dislike Xcode 4?
  • Previous by thread: Re: + (void) initialize not getting called
  • Next by thread: Re: + (void) initialize not getting called
  • Index(es):
    • Date
    • Thread