• 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: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?


  • Subject: Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
  • From: Iceberg-Dev <email@hidden>
  • Date: Wed, 14 Oct 2009 00:30:21 +0200


On Oct 13, 2009, at 12:42 AM, Jim Correia wrote:

On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev <email@hidden> wrote:

From what I've found in the documentation, the UTI type of a file can be retrieved using the
LaunchServices APIs. This requires to provide a FSRef.


Wouldn't there be an API I didn't see in Foundation that lets you obtain the type without having to
convert, at least, a NSURL to a FSRef?

See, on NSWorkspace:

- (NSString *)typeOfFile:(NSString *)absoluteFilePath error:(NSError
**)outError;

Thanks.

Unfortunately, I need a solution that is daemon-safe.


_______________________________________________

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: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
      • From: Kyle Sluder <email@hidden>
References: 
 >[UTI] Anyway to retrieve the UTI of a file without having to use a FSRef? (From: Iceberg-Dev <email@hidden>)
 >Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Property List Format vs NSKeyedArchiver Format
  • Next by Date: Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
  • Previous by thread: Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
  • Next by thread: Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?
  • Index(es):
    • Date
    • Thread