Re: setApplicationIconImage:

2015-01-25 Thread Rick C.
Got it Jens and thanks everyone for the help it’s much appreciated… :-) > On Jan 24, 2015, at 1:05 AM, Jens Alfke wrote: > > >> On Jan 23, 2015, at 1:53 AM, Rick C. > > wrote: >> >> Unfortunately setApplicationIconImage: works great it’s just I can’t find a >> m

Re: setApplicationIconImage:

2015-01-24 Thread Rainer Brockerhoff
On 1/23/15 18:00, cocoa-dev-requ...@lists.apple.com wrote: > Date: Fri, 23 Jan 2015 09:05:54 -0800 > From: Jens Alfke > To: "Rick C." > Cc: Cocoa Cocoa-Dev > >> On Jan 23, 2015, at 1:53 AM, Rick C. wrote: >> >> Unfortunately setApplicationIconImage: works great it’s just I >> can’t find a meth

Re: setApplicationIconImage:

2015-01-23 Thread Jens Alfke
> On Jan 23, 2015, at 1:53 AM, Rick C. wrote: > > 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… What you're asking for is impossibl

Re: setApplicationIconImage:

2015-01-23 Thread Fritz Anderson
On 23 Jan 2015, at 10:07 AM, Steve Mills wrote: > -setIcon:forFile:options: still sounds like your best bet, because it will > make a lasting change. Although it's too bad that Apple didn't allow this > method to take an .icns file as well as an image. That would've made it the > perfect solut

Re: setApplicationIconImage:

2015-01-23 Thread Steve Mills
On Jan 23, 2015, at 07:34:19, Charles Jenkins wrote: > > 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

Re: setApplicationIconImage:

2015-01-23 Thread Charles Jenkins
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

Re: setApplicationIconImage:

2015-01-23 Thread Rick C.
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, 20

Re: setApplicationIconImage:

2015-01-22 Thread Charles Srstka
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

Re: setApplicationIconImage:

2015-01-22 Thread Uli Kusterer
On 22 Jan 2015, at 08:32, Allan Odgaard wrote: > For this to work, you need to exclude the Info.plist from the app bundle’s > signature. Sounds like an exploit waiting to happen, though... > If the OP insists on adapting the icon to the current OS version then I > suggest using the existing s

Re: setApplicationIconImage:

2015-01-21 Thread Allan Odgaard
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 ic

Re: setApplicationIconImage:

2015-01-21 Thread Jens Alfke
> On Jan 21, 2015, at 11:03 PM, Rick C. wrote: > > Thanks for the reply. But how can I have multiple icon files in the bundle > and then choose the one I want? Alter the app's Info.plist, I suppose (and then call LaunchServices to tell it to re-register, so it'll notice the changes.) Which i

Re: setApplicationIconImage:

2015-01-21 Thread Kyle Sluder
On Thu, Jan 22, 2015, at 01:03 AM, Rick C. wrote: > Thanks for the reply. But how can I have multiple icon files in the > bundle and then choose the one I want? You can't. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: setApplicationIconImage:

2015-01-21 Thread Rick C.
Thanks for the reply. But how can I have multiple icon files in the bundle and then choose the one I want? > On Jan 22, 2015, at 2:00 PM, Jens Alfke wrote: > > >> On Jan 21, 2015, at 9:46 PM, Rick C. > > wrote: >> >> I’m using NSApp setApplicationIconImage: to

Re: setApplicationIconImage:

2015-01-21 Thread Jens Alfke
> On Jan 21, 2015, at 9:46 PM, Rick C. wrote: > > 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? That