• 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: Agent Applications and launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Agent Applications and launchd


  • Subject: Re: Agent Applications and launchd
  • From: Alberto Ricart <email@hidden>
  • Date: Tue, 3 Jan 2006 01:00:41 -0600


On Dec 31, 2005, at 5:23 AM, j o a r wrote:

then perhaps you shouldn't be using CFPreferences either? Who knows how many lines of code it's made up of? ;-)

The question is not the depth of the code path, but who the owner of the code is. The 800 line solution would lie on my side (as in it would need to be supported by me even if with support from the great folks at dts). My whole point is that the supported way is ridiculous - "autolaunch foo" is a simple request and shouldn't take more than 5 lines of code to specify - heck I bet the whole autolaunch functionality doesn't have that much code. My suggestion would be for Apple to add a system call like:


NSRegisterLoginItem(pathToFoo);

And heck while at it add:

NSUnregisterLoginItem(pathToFoo);
NSRegisterLogoutItem(pathToBar);
NSUnregisterLogoutItem(pathToBar);

If they want to be fancy the registration methods could take a BOOL that indicates whether the process should be launched right after the registration completes.


Cheers,



/a


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Agent Applications and launchd
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: NSToolbar tracking?
  • Next by Date: Re: Authenticating without UI
  • Previous by thread: Re: Agent Applications and launchd
  • Next by thread: Re: Agent Applications and launchd
  • Index(es):
    • Date
    • Thread