Re: finder eject images

2011-07-07 Thread Corbin Dunn
On Jul 5, 2011, at 7:34 AM, Patrick Robertson wrote: This is extremely fragile. You have no guarantee this image will continue to exist, that it will always be in ICNS format, or that the CoreTypes bundle will even continue to exist. True, but this method has been working for our app for 8

Re: finder eject images

2011-07-06 Thread Matt Gough
As everyone else has been saying, NSWorkspace image for type/file APIs and +[NSImage imageNamed:] are the API, and if it isn't there, you can file a bug but should use your own artwork. (As it says in the NSImage header.) Even if it isn't available via imageNamed, you might still be able to

Re: finder eject images

2011-07-05 Thread Ulf Dunkel
Hi Lee Ann. Also I think Apple frowns on copying their icons into your apps. Only the ones you can get through imageNamed: or iconForFileType: are fair game. Wasn't it Steve Jobs who invited us to pick all their nice icons, somewhen in the past when he introduced Leopard (or even Tiger)?

Re: finder eject images

2011-07-05 Thread Sherm Pendley
On Tue, Jul 5, 2011 at 6:53 AM, Ulf Dunkel dun...@calamus.net wrote: Hi Lee Ann. Also I think Apple frowns on copying their icons into your apps. Only the ones you can get through imageNamed: or iconForFileType: are fair game. Wasn't it Steve Jobs who invited us to pick all their nice icons,

Re: finder eject images

2011-07-05 Thread Patrick Robertson
Yes, but we're supposed to use them in-place, not copy them into our apps. I wasn't suggesting that be done. Here's the code I use in my apps: - (NSImage *)sysIconNamed:(NSString *)name { NSString *path = [[NSBundle bundleWithPath: @/System/Library/CoreServices/CoreTypes.bundle]

Re: finder eject images

2011-07-05 Thread Kyle Sluder
On Jul 5, 2011, at 5:20 AM, Patrick Robertson robertson.patr...@gmail.com wrote: I wasn't suggesting that be done. Here's the code I use in my apps: - (NSImage *)sysIconNamed:(NSString *)name { NSString *path = [[NSBundle bundleWithPath: @/System/Library/CoreServices/CoreTypes.bundle]

Re: finder eject images

2011-07-05 Thread Patrick Robertson
This is extremely fragile. You have no guarantee this image will continue to exist, that it will always be in ICNS format, or that the CoreTypes bundle will even continue to exist. True, but this method has been working for our app for 8 years now, no problems :) If you have any better

Re: finder eject images

2011-07-05 Thread Quincey Morris
On Jul 5, 2011, at 07:34, Patrick Robertson wrote: True, but this method has been working for our app for 8 years now, no problems :) If you have any better suggestions, feel free to let me know! For those hoping to use the CoreTypes.bundle ICNS, I have not seen any of them disappear or

Re: finder eject images

2011-07-05 Thread Ken Ferry
On Tue, Jul 5, 2011 at 7:34 AM, Patrick Robertson robertson.patr...@gmail.com wrote: This is extremely fragile. You have no guarantee this image will continue to exist, that it will always be in ICNS format, or that the CoreTypes bundle will even continue to exist. True, but this method

finder eject images

2011-07-04 Thread Tony Romano
Not quite a cocoa questionŠ By chance, does somewhere know where the images are for the eject button in finder. I looked in /system/library/coreservices/finder and they are not bundled with it. I'd prefer the Mac OS X versions and not some 3rd party. Thanks in advance. Tony Romano

Re: finder eject images

2011-07-04 Thread Lee Ann Rucker
Unicode eject symbol 23CF, possibly in Apple Symbols font: ⏏ - Original Message - From: Tony Romano tony...@hotmail.com To: List Cocoa Developer cocoa-dev@lists.apple.com Sent: Monday, July 4, 2011 12:16:02 PM Subject: finder eject images Not quite a cocoa questionŠ By chance, does

Re: finder eject images

2011-07-04 Thread Patrick Robertson
- From: Tony Romano tony...@hotmail.com To: List Cocoa Developer cocoa-dev@lists.apple.com Sent: Monday, July 4, 2011 12:16:02 PM Subject: finder eject images Not quite a cocoa questionŠ By chance, does somewhere know where the images are for the eject button in finder. I looked in /system

Re: finder eject images

2011-07-04 Thread Lee Ann Rucker
robertson.patr...@gmail.com To: Cocoa-dev@lists.apple.com Sent: Monday, July 4, 2011 12:24:20 PM Subject: Re: finder eject images Lots of system icons are stored in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ EjectMediaIcon.icns is in there :) On 4 July 2011 20:21, Lee Ann

Re: finder eject images

2011-07-04 Thread Tony Romano
To: Cocoa-dev@lists.apple.com Sent: Monday, July 4, 2011 12:24:20 PM Subject: Re: finder eject images Lots of system icons are stored in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ EjectMediaIcon.icns is in there :) On 4 July 2011 20:21, Lee Ann Rucker lruc...@vmware.com