• 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
Alternative to NSWorkspace iconForFileType for icons?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Alternative to NSWorkspace iconForFileType for icons?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Responding to view controller memory warnings (was Re: Outlets / IBOutlet declarations)
  • Next by Date: Core Data Relationships
  • Previous by thread: Re: Help with sheets, NSArrayController & NSTableView (all working together) ...
  • Next by thread: Re: Alternative to NSWorkspace iconForFileType for icons?
  • Index(es):
    • Date
    • Thread