• 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: How do I know the screensaver is active?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I know the screensaver is active?


  • Subject: Re: How do I know the screensaver is active?
  • From: Alastair Houghton <email@hidden>
  • Date: Sun, 28 Dec 2003 14:08:51 +0000

On 25 Dec 2003, at 09:36, Arthur VIGAN wrote:

> Hi,
>
> I would like to know if there is a way to know when the screensaver is
> launched (maybe a notification?). I have an application that needs
> lots of CPU, and I would like to launch it only when the user isn't
> working on his computer, for instance when the screensaver is running.
> Another way would be to launch the process during idle time. But I do
> I know when the user last used the mouse of the keyboard?

Why can't you leave it running all the time? Just use setpriority() to
raise the process' priority value... e.g. if you set it to 20, then it
will run whenever there is no other work to do, and not otherwise.

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: How do I know the screensaver is active?
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >How do I know the screensaver is active? (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: how to determine file path from a document's NSFileWrapper?
  • Next by Date: Re: Duh (NSTextView & Word Wrapping)
  • Previous by thread: How do I know the screensaver is active?
  • Next by thread: Re: How do I know the screensaver is active?
  • Index(es):
    • Date
    • Thread