Re: handling idle events
Re: handling idle events
- Subject: Re: handling idle events
- From: chaitanya pandit <email@hidden>
- Date: Tue, 5 Aug 2008 23:31:41 -0400
Hi,
You can use NSNotificationQueue to post your custom notification when
the run loop is idle (NSPostWhenIdle), and do the processing in it's
listener method.
On 05-Aug-08, at 10:16 PM, Jim Crafton wrote:
Is there a way to handle idle time in an NSApplication? In Win32 or
Carbon, since you manually write the actual while loop that processes
the events, this is pretty easy to do. Is there anything like this in
Cocoa? I've got some objects whose state (possibly) needs to be
updated, and I was planning on handling this in the "idle" handler.
My other idea, if this is not possible, would be to simply have a
timer that fires off every 0.5 seconds or so.
Thanks
Jim C
_______________________________________________
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
_______________________________________________
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