Rick, I have a silly suggestion you might like. 

I don't really understand what could be so different about the Yosemite icon 
that it would seem glaringly out of place on other systems, but assuming it 
really is the case that you want to continue to have two versions, I suggest 
you continue to use setApplicationIconImage:, but do things the other way 
around. Make the Yosemite icon be the app's official one, and only call 
setApplicationIconImage: for earlier OS versions. That way any unpleasantness 
will cure itself when the user upgrades. You might even include a preference 
setting so that if the change offends someone, he can turn it off and keep the 
Yosemite icon on any OS version.

-- 

Charles

On January 23, 2015 at 04:55:56, Rick C. (rickcort...@gmail.com) wrote:

Thanks everyone for the help. Bit of effort for something simple though. 
Unfortunately setApplicationIconImage: works great it’s just I can’t find a 
method to put it in that will cause the change before the app launches. It 
always takes place a second after the app launches…


> On Jan 23, 2015, at 11:09 AM, Charles Srstka <cocoa...@charlessoft.com> wrote:
>  
> I think you should be able to do what you want using a Dock Tile Plugin:
>  
> https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/CreatingaDockTilePlug-in/CreatingaDockTilePlug-in.html
>  
> <https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/customizing_docktile/CreatingaDockTilePlug-in/CreatingaDockTilePlug-in.html>
>  
> Definitely don’t modify your app’s own bundle. Not only is that evil, but 
> it’ll invalidate your code signature.
>  
> Charles
>  
>> On Jan 21, 2015, at 11:46 PM, Rick C. <rickcort...@gmail.com 
>> <mailto:rickcort...@gmail.com>> wrote:
>>  
>> Hi,
>>  
>> I’m using NSApp setApplicationIconImage: to set a different icon for 
>> Yosemite. Problem is the standard icon appears for a second then it changes 
>> to the Yosemite one. Same when quitting the app. Is there a better way to do 
>> this?
>> _______________________________________________
>>  
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
>> <mailto:Cocoa-dev@lists.apple.com>)
>>  
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com 
>> <http://lists.apple.com/>
>>  
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com 
>> <https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com>
>>  
>> This email sent to cocoa...@charlessoft.com
>  

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/cejwork%40gmail.com

This email sent to cejw...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to