• 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: Andrew Farmer <email@hidden>
  • Date: Sat, 4 Apr 2009 20:04:21 -0700

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.

In addition, if you are to use
NSTimer, how would you suggest setting the timer to call another function
that requires a passed variable?

Read up on CPS[1], but be prepared to have your head explode a bit.

[1]: http://en.wikipedia.org/wiki/Continuation-passing_style
_______________________________________________

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: Beachball on Lengthy Task (From: Pierce Freeman <email@hidden>)

  • Prev by Date: Re: Beachball on Lengthy Task
  • Next by Date: Re: Beachball on Lengthy Task
  • Previous by thread: Re: Beachball on Lengthy Task
  • Next by thread: Re: Beachball on Lengthy Task
  • Index(es):
    • Date
    • Thread