Notification on Login Items change?
Notification on Login Items change?
- Subject: Notification on Login Items change?
- From: Karl Moskowski <email@hidden>
- Date: Fri, 17 Oct 2008 12:38:18 -0400
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.
----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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