• 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: "Paul Sanders" <email@hidden>
  • Date: Sun, 15 Mar 2009 08:14:10 -0000

> Rather than doing it every 1000 iterations, make it be time-based.

Yes, I agree with you there.  That's what I myself usually do in fact.

> I'm not sure what you're referring to when you talk about "other
> techniques", but in general it is forbidden to access the GUI of a
> Cocoa app from secondary threads, so you pretty much have to use
> performSelectorOnMainThread: or some equivalent to update your GUI.

I was referring to where the OP said:

"but would it be safe, given the fact that sum and count are bound to some
textFields/progressIndicator"

And presumably it would not be as the instance variables referred to were
being mutated in a secondary thread.  Not my area of expertise though, I
have to say.  Not in Cocoa anyway.  I am used to a more robust threading
model.

_______________________________________________

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: Messages between Threads
      • From: Joar Wingfors <email@hidden>
References: 
 >Messages between Threads (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Messages between Threads (From: "Paul Sanders" <email@hidden>)
 >Re: Messages between Threads (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: [Q] inconsistent naming for Core Graphics and Foundation?
  • Next by Date: Re: [Q] inconsistent naming for Core Graphics and Foundation?
  • Previous by thread: Re: Messages between Threads
  • Next by thread: Re: Messages between Threads
  • Index(es):
    • Date
    • Thread