Re: How to find icon file path?
Re: How to find icon file path?
- Subject: Re: How to find icon file path?
- From: Matt Judy <email@hidden>
- Date: Tue, 23 Jul 2002 19:43:03 -0700
On Tuesday, July 23, 2002, at 06:59 PM, Chris Anderson wrote:
I'm assuming this would look something like
/System/Library/Whatever/Text.icns if I could get it.
Actually, that icon exists at:
/Applications/TextEdit.app/Contents/Resources/txt.icns
So, the source for NSFileManager iconForFile: clearly has figure out
where to get its icon data from... what's the magic?
I'm assuming you mean NSWorkspace ;)
I'm almost certain that the "magic" is the Icon Services API.
NSWorkspace probably uses an IconRef amd some of the Icon Services
functions. If that is the case, NSWorkspace would have no idea where
the actual icns file is located. If you wish, you can read more about
Icon Services here:
http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/IconServUtili/
iconservicesandutilities.html
--Matt Judy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.