On Wed, Apr 29, 2009 at 8:55 PM,  <kentoz...@comcast.net> wrote:
> I tried calling NSObject's
>
>
> performSelector:(SEL) aSelector   withObject:(id) anArgument   afterDelay:( 
> NSTimeInterval ) delay
>
>
>
> But the receiver's " aSelector"  method is never getting called. The only 
> logical place to perform this scheduling is from inside the thread because 
> only the thread knows when it is finished, but I'm having no luck getting the 
> method to run.

You need to run the runloop in the thread in order for timers or the
performSelector* methods to work. Which changes your logic around a
lot.

One alternate way to get your goal is call
performSelectorOnMainThread:withObject:waitUntilDone: and pass it a
method that calls [self performSelector:@selector(updateDirectories)
withObject:self afterDelay:1.0] (or whatever delay you want).
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to