• 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: main loop and idle function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: main loop and idle function


  • Subject: Re: main loop and idle function
  • From: Jay Kuri <email@hidden>
  • Date: Sat, 23 Feb 2002 15:43:41 -0600

Hello there,

I think the closest thing to what you are looking for is an NSTimer. You can create an NSTimer and ask it to send a specific message to a specific object.
You set a timer to fire every so often (perhaps every tenth of a second, or such) and call your idle-method... that should probably do what you want.

Look at the 'Timers' section under 'Events and Other Input'

Hope that helps,

Jay

On Saturday, February 23, 2002, at 01:32 PM, Bernard van Gastel wrote:

Hi

I just searched for 1.5 hour in the docs, but didn't find what I was looking for. I want NSApp to call a special function when the app is idle. I searched for a Notification name for the event, but didn't found one. Any help will be appreciated. If there isn't such a function, is it possible to implement my own event processing loop like [NSApp run], so I can use the idle time?

Bernard
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: main loop and idle function
      • From: Lance Bland <email@hidden>
  • Prev by Date: Re: number formatting
  • Next by Date: Re: number formatting
  • Previous by thread: Re: main loop and idle function
  • Next by thread: Re: main loop and idle function
  • Index(es):
    • Date
    • Thread