• 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: Tight Runloop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Tight Runloop (From: "Ricky McCrae" <email@hidden>)

  • Prev by Date: Tight Runloop
  • Next by Date: Re: Problem launching app with embedded frameworks
  • Previous by thread: Tight Runloop
  • Next by thread: Re: Tight Runloop
  • Index(es):
    • Date
    • Thread