Alternative to NSWorkspace iconForFileType for icons?
Alternative to NSWorkspace iconForFileType for icons?
- Subject: Alternative to NSWorkspace iconForFileType for icons?
- From: Kevin Walzer <email@hidden>
- Date: Tue, 24 Feb 2009 18:57:32 -0500
- Organization: WordTech Communications LLC
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 (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