• 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
Re: How to obtain icon displayed by Finder for a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to obtain icon displayed by Finder for a file


  • Subject: Re: How to obtain icon displayed by Finder for a file
  • From: Rob Keniger <email@hidden>
  • Date: Thu, 8 Jan 2009 13:47:37 +1000


On 08/01/2009, at 7:49 AM, Jelle De Laender wrote:

Did you try

- (NSImage *)iconForFile:(NSString *)fullPath

from NSWorkSpace?


You can also have a look at Matt Gemmel's NSImage+QuickLook class, which produces icons that match the ones the Finder gets from QuickLook:

http://mattgemmell.com/source

--
Rob Keniger



_______________________________________________

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


References: 
 >How to obtain icon displayed by Finder for a file (From: David <email@hidden>)
 >Re: How to obtain icon displayed by Finder for a file (From: Jelle De Laender <email@hidden>)

  • Prev by Date: -[NSView window] returns nil if its NSTabView not selected
  • Next by Date: Re: Large Core Data memory allocations for small rows
  • Previous by thread: Re: How to obtain icon displayed by Finder for a file
  • Next by thread: Re: Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?
  • Index(es):
    • Date
    • Thread