On Fri, 23 Sep 2011 08:27:07 -0700, Kyle Sluder said:

>This is not all that different from how UTIs behave now. Launch
>Services employs a few extremely simple heuristics (file extension,
>creator code, MIME type) and assigns a UTI to the file.

How does LS use MIME types?  I mean, where can LS get a file's MIME type from?  
It isn't in an xattr is it?

Also, note that LS _always_ prefers the extension.  I had hoped to work around 
the conflicting extensions problem by assigning an HFS type, but it doesn't 
help.  If you have 2 .foo files each with different (and known to LS) HFS 
types, it still reports one of the UTIs for .foo for both files. 
<rdar://5997350>


On Thu, 22 Sep 2011 19:24:10 -0500, Charles Srstka said:

>There are plenty of file types out there that can be identified by
>examining the first few bytes of the file — it would not be very
>difficult to augment the UTI system to take those into account when
>determining the type of a file

Yes, this would be nice, though obviously have a performance hit.  If you file 
a bug, you can reference mine: <rdar://5692565>.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to