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

2009-10-13 Thread Iceberg-Dev
On Oct 13, 2009, at 12:42 AM, Jim Correia wrote: On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev dev.iceb...@gmail.com 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

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

2009-10-13 Thread Kyle Sluder
On Tue, Oct 13, 2009 at 3:30 PM, Iceberg-Dev dev.iceb...@gmail.com wrote: Unfortunately, I need a solution that is daemon-safe. If you need a daemon-safe solution, why are you so averse to using an FSRef? --Kyle Sluder ___ Cocoa-dev mailing list

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

2009-10-13 Thread Ken Ferry
On Mon, Oct 12, 2009 at 3:45 PM, Jens Alfke j...@mooseyard.com wrote: On Oct 12, 2009, at 3:36 PM, Iceberg-Dev wrote: 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? In 10.5 there were a bunch of

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

2009-10-12 Thread Iceberg-Dev
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?

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

2009-10-12 Thread Jim Correia
On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev dev.iceb...@gmail.com 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

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

2009-10-12 Thread Jens Alfke
On Oct 12, 2009, at 3:36 PM, Iceberg-Dev wrote: 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? In 10.5 there were a bunch of mismatches between APIs like this, that required clients to convert