Re: How to get this bundle with identifier
Re: How to get this bundle with identifier
- Subject: Re: How to get this bundle with identifier
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sun, 9 Mar 2008 13:29:14 +0100
Le 9 mars 08 à 13:23, Jean-Daniel Dupas a écrit :
I don't think you really want to access the content of a private
kernel extension.
If your drive is mounted use -[NSWorkspace iconForFile:], else you
should use Icon Manager functions to retreive the disk icon
IconRef iconRef;
OSStatus err = GetIconRef(kOnSystemDisk, kSystemIconsCreator,
kGenericHardDiskIcon, &iconRef);
and then search on the net to find how to convert an IconRef into an
nsimage
Note that Leopard introduced the method-[NSImage initWithIconRef:
(IconRef)iconRef]
And do not forget to release the icon ref when you no longer need it :
ReleaseIconRef(iconRef);
_______________________________________________
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