Re: Tight Runloop
Re: Tight Runloop
- Subject: Re: Tight Runloop
- From: NSTask <email@hidden>
- Date: Tue, 25 Sep 2007 13:22:48 +0200
On 9/25/07, Ricky McCrae <email@hidden> wrote:
>
> Hey,
>
> I have some code that is getting caught in a tight in a tight run loop -
> it
> fulfills its function but locks the UI.
>
> The work needs to be performed is not thread safe and therefor needs to be
> performed on the current thread.
>
> Because the code is pseudo asynchronous it is scheduled to run on the
> current runloop like so;
[snip]
[object performSelector:@selector ( someFunction: ) withObject:nil
> afterDelay:0.0];
I am no Runloop expert but guess the above should be written like this
[object performSelector:@selector ( someFunction ) ];
S
_______________________________________________
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