• 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
Inconsistent results from iconForFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inconsistent results from iconForFile


  • Subject: Inconsistent results from iconForFile
  • From: Sandy McGuffog <email@hidden>
  • Date: Sat, 28 Nov 2009 08:31:19 +0200

Part of my code uses:

[[NSWorkspace sharedWorkspace] iconForFile:path];

For some files, I get a thumbnail of the file, so e.g., for a JPEG, I get a miniature of the actual image in the JPEG. But for other files, even in the same directory, I get the file type icon, so e.g., for a JPEG, the OS X JPEG icon.

All these files show the miniature of the image in Finder.

I've also tried with [NSFileWrapper icon]. Same result.

Can anyone shed light on this?

Thanks,

Sandy_______________________________________________

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: Inconsistent results from iconForFile
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Apache Module
  • Next by Date: Re: Apache Module
  • Previous by thread: Re: Referencing NSData's length in a predicate?
  • Next by thread: Re: Inconsistent results from iconForFile
  • Index(es):
    • Date
    • Thread