• 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: KVO can be unsafe in -init?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >KVO can be unsafe in -init? (From: John Chang <email@hidden>)
 >Re: KVO can be unsafe in -init? (From: Graham Cox <email@hidden>)
 >Re: KVO can be unsafe in -init? (From: John Chang <email@hidden>)
 >Re: KVO can be unsafe in -init? (From: John Chang <email@hidden>)

  • Prev by Date: Core Data SQLite I/O error on 10.6
  • Next by Date: Re: KVO can be unsafe in -init?
  • Previous by thread: Re: KVO can be unsafe in -init?
  • Next by thread: Re: KVO can be unsafe in -init?
  • Index(es):
    • Date
    • Thread