• 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: Messages between Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Messages between Threads


  • Subject: Re: Messages between Threads
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 16 Mar 2009 01:52:16 -0700

On Mar 15, 2009, at 10:43 PM, Gerriet M. Denkmann wrote:

On 15 Mar 2009, at 15:43, Joar Wingfors <email@hidden> wrote:
Please refer to the Cocoa thread safety documentations:

<http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/Introduction/Introduction.html

Could you please point to the exact section where it is stated that it is not OK to update a bound property from a background thread?

The part where it doesn't say it's safe to do so.

Your -add2Number: method is safe, but that's because it's updating sum from the main thread, not a background thread. If you were invoking - setSum: (which is what "self.sum =" does) from -add2Number: then it wouldn't be safe.

  -- Chris

_______________________________________________

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: 
 >Re: Messages between Threads (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Fast dictionary with integer keys?
  • Next by Date: Adding multiple NSTextViews inside one NSScrollView
  • Previous by thread: Re: Messages between Threads
  • Next by thread: Re: Messages between Threads
  • Index(es):
    • Date
    • Thread