• 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: Notification on Login Items change?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification on Login Items change?


  • Subject: Re: Notification on Login Items change?
  • From: Karl Moskowski <email@hidden>
  • Date: Fri, 17 Oct 2008 19:43:18 -0400

That's a good idea. Thanks.

----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

On 17-Oct-08, at 7:31 PM, Peter Ammon <email@hidden> wrote:


On Oct 17, 2008, at 9:38 AM, Karl Moskowski wrote:

In my Leopard-only app, I'm successfully using the LSSharedFileList APIs to add & remove my app from the Login Items list, and to check at launch if it's in the list (so I can correctly default the setting in the app's prefs window).

Is there a way to get notified when the entry is manually added or removed by the user from System Preferences? This way, I could keep my prefs check-box consistent with System Preferences while the app running.

I've tried adding the com.apple.loginitems and loginwindow suites to NSUserDefaults then listening for NSUserDefaultsDidChangeNotification, but that didn't work.

Consider syncing with the list every time your app is activated. A user won't be able to add or remove items from SysPrefs without first deactivating your app, and when your app is activated again, you'll pick up any changes.


-Peter

_______________________________________________

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


References: 
 >Notification on Login Items change? (From: Karl Moskowski <email@hidden>)
 >Re: Notification on Login Items change? (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Notification on Login Items change?
  • Next by Date: Re: Window widgets
  • Previous by thread: Re: Notification on Login Items change?
  • Next by thread: Re: Notification on Login Items change?
  • Index(es):
    • Date
    • Thread