Re: KVO can be unsafe in -init?
Re: KVO can be unsafe in -init?
- Subject: Re: KVO can be unsafe in -init?
- From: Mike Abdullah <email@hidden>
- Date: Wed, 9 Sep 2009 11:02:05 +0100
On 9 Sep 2009, at 10:31, John Chang wrote:
On 9 sep 2009, at 11.21, Mike Abdullah wrote:
Well I would question why you're calling +[XYZManager
sharedManager] from within -[XYZManager init] like that. What if
you change your init routine to:
Oops, sorry. It's actually two different classes which I renamed
incorrectly for the purposes of this discussion.
-[HighLevelObjectDatabase init] wants to listen to
[LowLevelObjectManager sharedManager] and observer any changes there.
I suspected it might be something like that :)
In which case, in your stack track, the two items at the bottom are
both LowLevelObjectManager? If so, I think you're looking for your bug
in the wrong place. It's happening in -[LowLevelObjectManager init],
not -[HighLevelObjectDatabase init].
Mike.
_______________________________________________
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