Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)

2009-09-07 Thread Parimal Das
Hello all, I am trying to do the following- when my app is used for the first time - *'open at login'* is selected by default. For that i am calling the code below for the app's first run. The code is working fine and my app is getting added in the login item list, But on ctrl+click on my apps

Re: Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)

2009-09-07 Thread Steven Degutis
Parimal, Your code looks complete and correct, so my only guess is that the variable url is not actually pointing to [[NSBundle mainBundle] bundleURL] which might explain it. (Then again, I've only ever dealt with manually adding my application to the Login Items programmatically in apps that had

Re: Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)

2009-09-07 Thread Parimal Das
The 'url' path is correct as it is adding my app to the login item list, I suspect that, as i am calling this method in awakeFromNib: , dock is getting created first and then the app is getting added in the login item list. Can you suggest some events, which can be called before app generates its