Re: + (void) initialize not getting called
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