Re: Where is the Computer Image ?
Re: Where is the Computer Image ?
- Subject: Re: Where is the Computer Image ?
- From: Klaus Backert <email@hidden>
- Date: Tue, 16 Dec 2008 19:33:57 +0100
On 16.12.2008, at 17:45, 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 image of a black MacBook? (My computer is white.)
Is hardcoding the name like:
NSImage *anImage = [ [ [ NSImage alloc ] initByReferencingFile: @"/
System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
com.apple.macbook-black.icns" ] autorelease ];
really the only solution?
Looks kind of fragile to me.
Well, I don't know why you want a black MacBook image. On my white
MacBook the correct – white – image is shown, which is just what I
want. But, as they usually say on these mailing lists, YMMV – young
man ... no ... your mileage may vary :-))
Kind regards
Klaus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden