• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setApplicationIconImage:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: setApplicationIconImage:
      • From: Uli Kusterer <email@hidden>
References: 
 >setApplicationIconImage: (From: "Rick C." <email@hidden>)
 >Re: setApplicationIconImage: (From: Jens Alfke <email@hidden>)
 >Re: setApplicationIconImage: (From: "Rick C." <email@hidden>)
 >Re: setApplicationIconImage: (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: setApplicationIconImage:
  • Next by Date: Re: setApplicationIconImage:
  • Previous by thread: Re: setApplicationIconImage:
  • Next by thread: Re: setApplicationIconImage:
  • Index(es):
    • Date
    • Thread