Re: loginwindow AliasData
Re: loginwindow AliasData
- Subject: Re: loginwindow AliasData
- From: Jim Correia <email@hidden>
- Date: Tue, 12 Nov 2002 09:34:35 -0500
On Tuesday, November 12, 2002, at 09:25 AM, Bob Peterson wrote:
I've successfully programmed my app to configure itself as a Login
Item by tweaking the loginwindow domain using NSUserPreferences. I
only set the Path and Hide keys.
The AliasData key I don't set, since its use isn't obvious to me. It
looks like it might be Finder alias data, judging by the name. If so,
that'd be very useful. It could be a way to insure against my
application being moved or renamed. But I've hunted through the Carbon
headers and this mailing list's archives without finding any clues.
Maybe I'm hunting for the wrong keywords.
Does anyone have hints or solutions for me?
---
Here's a second question: It's unpleasant to tweak another app's
defaults while that other app is running. I send the synchronize
message to NSUserDefaults but the Login Items panel doesn't notice the
change. That can be bad if the user then directly interacts with the
Login Items panel, as it will overwrite my app's changes. Is that just
life, or is there something I can do to notify Login Items to reload
its defaults?
Login items is now scriptable via System Events. Sending an appropriate
apple event to System Events seems the best forward looking solution
because you won't be broken by format changes in the plist (which is an
implementation detail). Practically speaking since Apple may be stuck
with that implementation detail for some time since lots of people edit
the list directly since there was no "public api" to do so before
Jaguar.
Jim
_______________________________________________
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.