NSApplication provides the instance method setApplicationIconImage:

At startup (say, the applicationDidFinishLaunching: method) you could determine what icon you need to display and set it, using the above method, to the appropriate icns file from your bundle.

Note that this will not permanently modify the icon, it only modifies the icon image used for one session of your application.

Kiel

On 02/04/2009, at 2:44 AM, fawad shafi wrote:


Dear All,
i m developing one application, my requirement is that when the user opens the application first time in simulator, i want to display 1.icn file as an app icn, and if not the first time. then i wana display 2.icn.
is it possible?

Regards,
Fawad Shafi



_________________________________________________________________
Windows Liveā„¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_042009_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/kiel.gillard%40gmail.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to