Re: Doc kind from extension
Re: Doc kind from extension
- Subject: Re: Doc kind from extension
- From: Bill Monk <email@hidden>
- Date: Thu, 11 Jun 2009 12:42:29 -0500
On Jun 11, 2009, at 11:55 AM, Sidney San Mart?n wrote:
That'll work in most cases, but as discussed in
http://lists.apple.com/archives/carbon-dev/2007/Nov/msg00642.html
anything that Preview can open will just return Preview Document for
that call.
I just double-checked - I have an app that uses LSCopyKindStringForRef
extensively and knew I'd never seen this problem under any version of
Leopard. However the app doesn't use LSCopyKindStringForTypeInfo at all.
Under 10.5.7 here, LSCopyKindStringForRef does work fine for files
which can be opened by Preview. LSCopyKindStringForTypeInfo does
incorrectly return "Preview Document" for .jpg, .pdf, etc, as noted in
the post you mentioned.
Since the OP has the file extension, presumably (hopefully) they have
or can get paths and FSRefs and could work around the issue with
LSCopyKindStringForRef.
_______________________________________________
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