• 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: NSTimer questons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer questons


  • Subject: Re: NSTimer questons
  • From: Prachi Gauriar <email@hidden>
  • Date: Tue, 6 Jul 2004 14:22:05 -0500

On Jul 6, 2004, at 1:38 PM, Kodex wrote:
--- Stiphane_Sudre <email@hidden> wrote:
Le Jul 6, 2004, ` 12:29 PM, Kodex a icrit :
I am working on a system preference pane and i want to have a timer running in it so i can update things at boot and keep updating them to shutdown. The issue is my timer stops working as soon as you quit System Preferences and dosnt load at boot? I was wondering if i am using the wrong kind of timer for this or if i just wasnt coding it right. If someone could give me some examples or point me in the right direction it would really help me out. Thanks in advance.

Why would the timer be running when the system preference pane is not loaded?

System Preferences pane are only loaded and running when System Preferences.app is running and they have been shown at least once.

What you're looking for is probably a system daemon that you would launch with a startup script or the bootstrap thing on Mac OS X 10.3.

Does anyone have any info on this to help me set it up. Basicly i need a timer that can be set to X amount of minutes in the system prefreneces and then fire on that mark while the system is still running.

Stephanie hit it right on. Basically, you need to create a daemon that starts up when the machine boots that performs whatever task you need. You then have the pref pane communicate with that process to give it the appropriate time interval, and tells it to start or stop.

To get your background process to launch at startup, check out bootstarp daemons <http://developer.apple.com/documentation/MacOSX/Conceptual/ BPSystemStartup/Concepts/BootProcess.html#//apple_ref/doc/uid/20002130/ CJBBICAB>.

For info on interprocess communication (so your pref pane can communicate with the daemon), check out Distributed Objects <http://developer.apple.com/documentation/Cocoa/Conceptual/ DistrObjects/>.

-Prachi
_______________________________________________
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.


References: 
 >Re: NSTimer questons (From: Kodex <email@hidden>)

  • Prev by Date: Re: NSDraggingInfo's slideDraggedImageTo
  • Next by Date: Re: NSTimer questons
  • Previous by thread: Re: NSTimer questons
  • Next by thread: Re: NSTimer questons
  • Index(es):
    • Date
    • Thread