Possible Duplicate:
Add/remove application icon from dock at runtime?
Programmatically add application icon to dock on install
I am wondering how I can add my app icon to the dock programmatically (so that it remains in the dock except if the user removes it). Please don't answer that it is forbidden to do that, I really need to do this for a specific need :)
I have seen these threads:
Programmatically add application icon to dock on install
Add/remove application icon from dock at runtime?
But they do no answer the question.
Any idea?