• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Function for Retrieving icon from bundle's.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: string bounding rect methods
  • Next by Date: Re: Vvidget Code
  • Previous by thread: Re: string bounding rect methods
  • Next by thread: clip cursor in NSView
  • Index(es):
    • Date
    • Thread