• 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: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability


  • Subject: Re: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
  • From: Andrew Farmer <email@hidden>
  • Date: Wed, 7 Jan 2009 14:30:09 -0800

On 07 Jan 09, at 07:08, Parimal Das wrote:
my app needs to extract finder icons in preview mode.
i am using QLThumbnailImageCreate() to get those in 10.5 leopord
i want my app to run on 10.4 Tiger also , but icon services api is filled
with deprecated methods


so how it is possible to write a same app which will run on both 10.4 and
10.5 versions of Mac OS-X
what should i use to make my app compatible to 10.4


i am using QLThumbnailImageCreate() function as


CGImageRef ref = QLThumbnailImageCreate(kCFAllocatorDefault, (CFURLRef)fileURL, CGSizeMake(200,200), (CFDictionaryRef)dict);

in documentation it say that this function is available only for 10.5 n
above.
how to substitute that??

QLThumbnailImageCreate is a QuickLook function (hence the QL!). It doesn't exist on 10.4 in any form. If you want a generic icon, use NSWorkspace's icon functions; if you want a preview, good luck.
_______________________________________________


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: 
 >substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability (From: "Parimal Das" <email@hidden>)

  • Prev by Date: Re: Can I call unbind: in finalize? Is it thread safe?
  • Next by Date: Re: How to obtain icon displayed by Finder for a file
  • Previous by thread: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
  • Next by thread: Dock menu item action isn't performed in modal state
  • Index(es):
    • Date
    • Thread