I'm trying to implement some command-line functionality that will
retrieve the path to the icon for a specified file type, and I'm having
trouble locating the correct API in Cocoa.
As I read it, the iconForFileType and related methods form NSWorkspace
returns an NSImage. I don't want an NSImage. I want the path to the
'icns' file that the iconForFileType NSImage is based on.
Looking through various docs, I see that the 'lsregister -dump' command
seems to have the functionality I want, but the output of that command
is a swamp.
Am I missing something in Cocoa here? Can anyone suggest an alternative
API/class/method to me?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
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