• 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: Jerry Krinock <email@hidden>
  • Date: Sat, 12 Sep 2009 20:33:38 -0700


On 2009 Sep 11, at 05:55, John Chang wrote:

Just to update you guys. We managed to reproduce the problem in- house and
catch it in the debugger.

I'd be interested to know how John is going to fix this problem. I myself have used the performSelector:withObject:afterDelay:0.0 solution in situations like this, usually with good results, but it always feels like a kludge, and I worry -- what if someday I also accidentally delay the code that's supposed to run first, to solve a different problem. So I've just moved the problem from crashNow to crashAfterDelay:. Sometimes I feel better if I make the delay .01 or so.


The ideal solution is to look around for another method that's somehow guaranteed to run later. That's ideal, but you can't always find one.

_______________________________________________

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


  • Follow-Ups:
    • Re: KVO can be unsafe in -init?
      • From: John Chang <email@hidden>
References: 
 >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: Re: Not receiving mouseDown/Up events in borderless window . . .
  • Next by Date: How to display AboutBox window in Agent Application
  • Previous by thread: Re: KVO can be unsafe in -init?
  • Next by thread: Re: KVO can be unsafe in -init?
  • Index(es):
    • Date
    • Thread