• 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: Need longer highlight w/ NSButton performClick:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need longer highlight w/ NSButton performClick:


  • Subject: Re: Need longer highlight w/ NSButton performClick:
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 28 Mar 2005 23:30:10 +0200

Glen,

On 28.3.2005, at 22:19, Glen Simmons wrote:

Does anyone see any problem with this? I always feel a little uneasy about sleeping in the main thread, but it should be OK if it's low enough (.1 sec or so), right?

This small interval should not be a problem. Nevertheless, if you do feel uneasy, of course you can replace the code by something like


-(void)lazyFinish { ...the original ending after sleep... }
-(void)performClick:sender {
...original beginnning before sleep...
[self performSelector:@selector(lazyFinish) withObject:nil afterDelay:.1];
}
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Need longer highlight w/ NSButton performClick:
      • From: Glen Simmons <email@hidden>
References: 
 >Need longer highlight w/ NSButton performClick: (From: Glen Simmons <email@hidden>)
 >Re: Need longer highlight w/ NSButton performClick: (From: Ricky Sharp <email@hidden>)
 >Re: Need longer highlight w/ NSButton performClick: (From: Glen Simmons <email@hidden>)
 >Re: Need longer highlight w/ NSButton performClick: (From: Glen Simmons <email@hidden>)

  • Prev by Date: CFRunLoopRun()
  • Next by Date: Re: Re[4]: NSTableView and memory management problem.
  • Previous by thread: Re: Need longer highlight w/ NSButton performClick:
  • Next by thread: Re: Need longer highlight w/ NSButton performClick:
  • Index(es):
    • Date
    • Thread