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. > <mailto:rickcort...@gmail.com>> wrote: >> >> Unfortunately setApplicationIconImag

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 setApplicationIconIma

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: 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
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. Tha

Re: setApplicationIconImage:

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

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

Re: setApplicationIconImage:

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

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. > <mailto:rickcort...@gmail.com>> wrote: >> >>

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 &

setApplicationIconImage:

2015-01-21 Thread Rick C.
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

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-10 Thread Kyle Sluder
On Sun, Aug 10, 2008 at 8:04 PM, Matt Neuburg <[EMAIL PROTECTED]> wrote: > That's perhaps perfectly true. But "later" could be a LOT later - and in the > meantime quite a lot of memory could pile up. For example, it is the nature > of the Cocoa event loop that the autorelease pool gets cleaned out

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-10 Thread Matt Neuburg
On or about 8/10/08 4:37 PM, thus spake "Kyle Sluder" <[EMAIL PROTECTED]>: > On Fri, Aug 8, 2008 at 9:02 AM, Matt Neuburg <[EMAIL PROTECTED]> wrote: >> Wrap each call to setApplicationIconImage in an autorelease pool creation >> and release, like this:

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-10 Thread Kyle Sluder
On Fri, Aug 8, 2008 at 9:02 AM, Matt Neuburg <[EMAIL PROTECTED]> wrote: > Wrap each call to setApplicationIconImage in an autorelease pool creation > and release, like this: > >NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; >[NSApp setApplicati

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-10 Thread Matt Neuburg
On Sat, 9 Aug 2008 15:19:08 -0700, "Shawn Erickson" <[EMAIL PROTECTED]> said: >On Sat, Aug 9, 2008 at 2:46 PM, Mark Allan <[EMAIL PROTECTED]> wrote: > >> I fail to see how [NSApp setApplicationIconImage:theNewImage]; is any >> different to [NSApp setApplica

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-09 Thread Shawn Erickson
On Sat, Aug 9, 2008 at 2:46 PM, Mark Allan <[EMAIL PROTECTED]> wrote: > I fail to see how [NSApp setApplicationIconImage:theNewImage]; is any > different to [NSApp setApplicationIconImage:[theNewImage objectAtIndex:1]] > but it obviously does function differently. Please post

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-09 Thread Mark Allan
the first animation of all 8 frames. I fail to see how [NSApp setApplicationIconImage:theNewImage]; is any different to [NSApp setApplicationIconImage:[theNewImage objectAtIndex:1]] but it obviously does function differently. Mark ___ Cocoa-dev mai

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-09 Thread Matt Neuburg
t;>>> >>>>Before I file a bug report against this, I just thought I'd check I'm >>>>not being monumentally stupid first! >>>> >>>>I'm trying to animate my app's Dock icon, which works fine and looks >>>>great, but

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-09 Thread Michael Ash
I'd check I'm >>> not being monumentally stupid first! >>> >>> I'm trying to animate my app's Dock icon, which works fine and looks >>> great, but unfortunately, it appears to leak memory like crazy. >>> Every time I call [NSA

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-08 Thread Mark Allan
trying to animate my app's Dock icon, which works fine and looks great, but unfortunately, it appears to leak memory like crazy. Every time I call [NSApp setApplicationIconImage:(NSImage *)] and pass it pointer to an existing image, it leaks more memory. Wrap each call to setApplication

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-08 Thread Mark Allan
unfortunately, it appears to leak memory like crazy. Every time I call [NSApp setApplicationIconImage:(NSImage *)] and pass it pointer to an existing image, it leaks more memory. Wrap each call to setApplicationIconImage in an autorelease pool creation and release, like this:

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-08 Thread Sumner Trammell
Ok, stupid question time. 1. Is the need for the autorelease pool because of the use of setApplicationIconImage, or because of the array that is being used in conjunction with setApplicationIconImage? 2. Would putting the calls to setApplicationIconImage in a class method also stop the memory

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-08 Thread Matt Neuburg
fine and looks >great, but unfortunately, it appears to leak memory like crazy. >Every time I call [NSApp setApplicationIconImage:(NSImage *)] and >pass it pointer to an existing image, it leaks more memory. Wrap each call to setApplicationIconImage in an autorelease pool creation and

Does [NSApp setApplicationIconImage] leak memory?

2008-08-07 Thread Mark Allan
y time I call [NSApp setApplicationIconImage:(NSImage *)] and pass it pointer to an existing image, it leaks more memory. My init method sets up 8 frames of the animation like so: frame1 = [[NSArray arrayWithObjects: [NSImage imageNamed:@"menu_frame1"], [NSImage imageNamed:@"dock_frame1&qu