APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2005/05/13 UTI (Mac OS X Uniform Type Identifiers)

© May 2005 Tony Lawrence

UTI's identify data. It's not just files; streaming data, cut-and-paste data, a disk volume - if it exists, it can have a UTI type. Obviously this is much more powerful than identifying things by extensions or by magic numbers. Identifying data helps applications know what helper applications they may use and also let them know when their own abilities are enough (if a .html file is a subset of text, then any text app can handle it)

My immediate reaction was to think "Mime?". Mime types aren't the answer, at least in Apple's opinion. It starts off in the right direction, but only has a two level hierarchy and requires approval by the IANA for extensions other than "x-". Apple proposes a more extensible format where it has provided top-level identifiers such as public.text, public.plain-text, etc. If you want to define a type, you don't need Apple: "com.yourdomain.yourtype" is how you do it. In your app's Info.plist, you declare that and say what UTI's it inherits from. See https://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/ for more details.

https://arstechnica.com/reviews/os/macosx-10.4.ars/11 has a nice overview of all this also.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> 2005/05/13 UTI (Mac OS X Uniform Type Identifiers)

Inexpensive and informative Apple related e-books:

Take Control of Upgrading to El Capitan

Take Control of the Mac Command Line with Terminal, Second Edition

Photos: A Take Control Crash Course

Take Control of IOS 11

Take Control of Apple Mail, Third Edition

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

Talent does what it can; genius does what it must. (Edward G. Bulwer-Lytton)

Linux posts

Troubleshooting posts

This post tagged:

Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode