• 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: NSObjectController add: Method RunLoop Deferral
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectController add: Method RunLoop Deferral


  • Subject: Re: NSObjectController add: Method RunLoop Deferral
  • From: Jason Foreman <email@hidden>
  • Date: Mon, 2 Nov 2009 15:44:53 -0600


On Nov 2, 2009, at 2:51 PM, Richard Somers wrote:

<snip>

I think the problem is with the add: method. The documentation states "Beginning with Mac OS X v10.4 the result of this method is deferred until the next iteration of the runloop so that the error presentation mechanism can provide feedback as a sheet."

I can not figure out how to work around this.


Use the -newObject method to create a new instance, do what you need to do with it, then pass it to -addObject:.

Otherwise, defer the work you need to do with the value until the next runloop as well, using -performSelector:withObject:afterDelay:.


Jason


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >NSObjectController add: Method RunLoop Deferral (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Help debugging "Dangling reference to an invalid object." Core Data error
  • Next by Date: Strange behaviour with NSTableView binded to NSArrayController with NSSet as content
  • Previous by thread: NSObjectController add: Method RunLoop Deferral
  • Next by thread: re: Core Data design question: receiving KVO notifications of partially mutated objects
  • Index(es):
    • Date
    • Thread