Re: Where is the Computer Image ?

2008-12-16 Thread Gerriet M. Denkmann
On 16 Dec 2008, at 08:43, Brandon Walkin wrote: The image is in /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources This works fine: NSImage *anImage = [ NSImage imageNamed: NSImageNameComputer ]; but how to get an image of a black MacBook? (My computer is white.) Is

Re: Where is the Computer Image ?

2008-12-16 Thread Benjamin Dobson
On 16 Dec 2008, at 16:45:44, Gerriet M. Denkmann wrote: On 16 Dec 2008, at 08:43, Brandon Walkin wrote: The image is in /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources This works fine: NSImage *anImage = [ NSImage imageNamed: NSImageNameComputer ]; but how to get an

Re: Where is the Computer Image ?

2008-12-15 Thread Benjamin Dobson
The image is already in Cocoa, named NSComputer. On 15 Dec 2008, at 04:53:12, Gerriet M. Denkmann wrote: Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an image

Re: Where is the Computer Image ?

2008-12-15 Thread John C. Randolph
On Dec 14, 2008, at 8:53 PM, Gerriet M. Denkmann wrote: Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an image of a home folder, or of a disk partition. But

Re: Where is the Computer Image ?

2008-12-15 Thread Clark Cox
On Mon, Dec 15, 2008 at 7:52 AM, Benjamin Dobson importedfromsp...@googlemail.com wrote: The image is already in Cocoa, named NSComputer. Don't use that name directly in your code, it's best to use the named constant: NSImageNameComputer. -- Clark S. Cox III clarkc...@gmail.com

Re: Where is the Computer Image ?

2008-12-15 Thread Michael Ash
On Mon, Dec 15, 2008 at 1:35 PM, Clark Cox clarkc...@gmail.com wrote: On Mon, Dec 15, 2008 at 7:52 AM, Benjamin Dobson importedfromsp...@googlemail.com wrote: The image is already in Cocoa, named NSComputer. Don't use that name directly in your code, it's best to use the named constant:

Re: Where is the Computer Image ?

2008-12-15 Thread Gerriet M. Denkmann
On 15 Dec 2008, at 19:24, John C. Randolph wrote: On Dec 14, 2008, at 8:53 PM, Gerriet M. Denkmann wrote: Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an

Re: Where is the Computer Image ?

2008-12-15 Thread Brandon Walkin
The image is in /System/Library/CoreServices/CoreTypes.bundle/Contents/ Resources On 15-Dec-08, at 12:00 PM, Gerriet M. Denkmann wrote: On 15 Dec 2008, at 19:24, John C. Randolph wrote: On Dec 14, 2008, at 8:53 PM, Gerriet M. Denkmann wrote: Finder.app can show in its Sidebar an image

Re: Where is the Computer Image ?

2008-12-15 Thread Rob Keniger
On 16/12/2008, at 4:00 AM, Gerriet M. Denkmann wrote: Well, I looked at Finders Search For - All Images (some 18000 images) but did not see a computer. If the documentation for [NSImage imageNamed:] would have mentioned that image names are to be found in the Constants section, this

Re: Where is the Computer Image ?

2008-12-15 Thread Klaus Backert
On 15.12.2008, at 18:00, Gerriet M. Denkmann wrote: If the documentation for [NSImage imageNamed:] would have mentioned that image names are to be found in the Constants section, this would have helped a lot. But it only says that it will: Search the Application Kit framework for a shared

Where is the Computer Image ?

2008-12-14 Thread Gerriet M. Denkmann
Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an image of a home folder, or of a disk partition. But I cannot find a computer image. Also looked at Icon

Re: Where is the Computer Image ?

2008-12-14 Thread Clark Cox
On Sun, Dec 14, 2008 at 8:53 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an image of a home folder, or of