• 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
Getting a file's icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a file's icon


  • Subject: Getting a file's icon
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Tue, 28 Oct 2008 17:20:21 -0400

I was wondering how I can get an "NSImage" from a file's icon (assuming I have that file's path)...

I've read about FileWrapper's icon method ([fileWrapper icon]) which returns exactly what I need, but I'm not really familiar with file wrappers and from what I understand from the Class documentation, a file wrapper actually holds the file's content in dynamic memory... does this mean it can be a problem if I open a bunch of big files? Do I really need to hold the file's content in memory if all I need is its icon?


Jean-Nicolas Jolivet _______________________________________________

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: Getting a file's icon
      • From: Dave DeLong <email@hidden>
  • Prev by Date: Re: Getting available free disk space on disk image
  • Next by Date: Re: Getting a file's icon
  • Previous by thread: Re: Getting available free disk space on disk image
  • Next by thread: Re: Getting a file's icon
  • Index(es):
    • Date
    • Thread