PDA

View Full Version : Adding and removing Application to the Dock programmatically.


amitjain
11-22-2007, 03:27 AM
Hi All
I have been having a bit of a problem with placing an application in the Dock. I want to place an application icon in the Dock programically. Is there some API call which can do this. I Already know another way to do the same which is by adding the application to "com.apple.preferences.plist" using "defaults". However the problem with this way is that the dock has to be restarted to show the change.
This option i have want to provide to the user when he is installing my application.
I have seen this kind of functionality in the microsoft office set wizard. But they are using some "Setup Assistance" software for installing office not the apple standard installer (package maker as it does not have any such option of putting the application on Dock).
Help will be appreciated.
Thanks in advance.
@mit jain