• 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: Doc kind from extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Weird race condition affecting bindings.
  • Next by Date: Get application path by Bundle ID
  • Previous by thread: Re: Doc kind from extension
  • Next by thread: NSString becoming invalid
  • Index(es):
    • Date
    • Thread