Re: Java/Cocoa-Java Delay
Re: Java/Cocoa-Java Delay
- Subject: Re: Java/Cocoa-Java Delay
- From: Andreas Monitzer <email@hidden>
- Date: Fri, 25 May 2001 12:53:50 +0200
On Friday, May 25, 2001, at 10:31 , John C. Randolph wrote:
Rather than wait for two seconds (burning up CPU time), why not just send
yourself a message in two seconds with an NSTimer?
A sleep(2) wouldn't burn CPU time. However, I'd go for the NSTimer
solution, because if this call is used in the main thread the interface
would be blocked. And it's more OOP.
andy
--
Description forthcoming.