Re: setApplicationIconImage:
Re: setApplicationIconImage:
- Subject: Re: setApplicationIconImage:
- From: Allan Odgaard <email@hidden>
- Date: Thu, 22 Jan 2015 14:32:38 +0700
On 22 Jan 2015, at 14:11, Jens Alfke wrote:
Alter the app's Info.plist, I suppose (and then call LaunchServices to
tell it to re-register, so it'll notice the changes.)
For this to work, you need to exclude the Info.plist from the app
bundle’s signature.
If the OP insists on adapting the icon to the current OS version then I
suggest using the existing system for custom icons.
This works by writing a file named `Icon\r` to the root of the
application bundle and should be easy to simulate in code. A quick test
shows no need for resetting the LS cache, but you do need to relaunch
Dock.app (for the dock to update).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden