Re: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
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