I am trying to programatically add a startup item with LSSharedFileListInsertItemURL (the recommended method in 10.5 going forward)
The call requests, but does not require an icon for the item. the icon is supplied by iconRef.
iconRef can be created by using an FSSpec to the icon file. My understanding is that FS Spec is deprecated in 10.4 going forwards.
Is there a way to get the apps .icns in iconRef without resorting to FSSpec or do I just have to use NULL?
My understanding is that FS Spec is deprecated in 10.4 going forwards.
Longer than that.
Is there a way to get the apps .icns in iconRef without resorting to FSSpec or do I just have to use NULL?
Use the RegisterIconRefFromFSRef
function.
Passing NULL
will add the item with no icon; IIRC, it'll have the document icon when the user looks at their login items list in System Preferences.