Manish D Manish D - 21 days ago 7
Objective-C Question

Like, Tray icon and Dock Icon is there anything like desktop icon in MAC OS X?

I've created an application and want its icon to be displayed on my desktop mind it i don't want a shortcut. It should be an icon as it is on tray and dock, like when i click it application should launch. AND ALL THIS I WANT IT PROGRAMMATICALLY.

Plz help i'm a newbie,
Thanks in advance.

Answer Source

There is nothing as desktop icon,
instead create hardlink via NSFileManager's function.

[[NSFileManager defaultManager] linkItemAtPath:<application path>
                                                toPath:shortCutDestPath
                                                 error:&error];

This won't show that shortcut arrow also like it shows in soft link.