Re: Where is the Computer Image ?
Re: Where is the Computer Image ?
- Subject: Re: Where is the Computer Image ?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 16 Dec 2008 23:45:44 +0700
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.
Kind regards,
Gerriet.
_______________________________________________
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