• 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: Beachball on Lengthy Task
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beachball on Lengthy Task


  • Subject: Re: Beachball on Lengthy Task
  • From: Stuart Malin <email@hidden>
  • Date: Sat, 4 Apr 2009 17:20:03 -1000


On Apr 4, 2009, at 5:07 PM, Andrew Farmer wrote:

On 04 Apr 09, at 19:35, Pierce Freeman wrote:
Yeah, it really helped! I am trying to get the contents of the
files in a
certain directory, so I think that I could probably get away with
using a
timer. I assume you mean NSTimer for the timer, though there could be
another class that I am totally missing. ;)

There's also NSObject's performSelector:withObject:afterDelay: method.


And, if you are 10.5 only, there's also NSObject's performSelectorInBackground:withObject:

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#/ /apple_ref/doc/uid/20000050-SW4

and make callbacks using - performSelectorOnMainThread:withObject:waitUntilDone:

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#/ /apple_ref/doc/uid/20000050-CJBEHAEF


Regarding threads, see Threading Programming Guide: http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/

_______________________________________________

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: Beachball on Lengthy Task
      • From: Pierce Freeman <email@hidden>
  • Prev by Date: Re: Beachball on Lengthy Task
  • Next by Date: How can I get data from a javascript function in a WebView into the enclosing Cocoa App?
  • Previous by thread: Re: Beachball on Lengthy Task
  • Next by thread: Re: Beachball on Lengthy Task
  • Index(es):
    • Date
    • Thread