After I replaced my 50 lines of code with calls to the functions in Apple's
LoginItemsAE.c and re-tested my app, I discovered another reason why using
LoginItemsAE.c is a good idea: AliasData.
Apple's code adds the AliasData key/value pair to your login item. My own
code did not do that.
I could not find any documentation on AliasData; I presume that it is needed
for your login item to launch if the user moves it, and is probably some
kind of serialized FSRef, which I would have had to reverse-engineer had I
continued developing with my own code.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden