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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to