Function for Retrieving icon from bundle's.
Function for Retrieving icon from bundle's.
- Subject: Function for Retrieving icon from bundle's.
- From: Sandro Noel <email@hidden>
- Date: Fri, 16 Jan 2009 22:40:12 -0500
Greetings.
I have now completed my quest for the Machine model, :) YĆ©!
i'm faced yet with another problem, retriving the icon from a bundle.
/System/Library/CoreServices/CoreTypes.bundle
I've tried.
NSImage *icon = [[NSWorkspace sharedWorkspace]
iconForFileType:modelName];
But that just gives me a nice default icon witch is not what i was
aiming for.
i've also tried
GetIconRef (kOnSystemDisk, kSystemIconsCreator, modelName, &theIconRef);
But that just also gibes me the default unknown document icon.
or am i going about this the wrong way ?
is there another way to get machine icons with the machine model code?
for example. iMac6,1
Thank you !
Sandro Noel._______________________________________________
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