« Quarterly | Main | War sim »

Random Leopard UTI discovery

UTIs (Uniform Type Identifiers) take on a big new role in Leopard. Poking around in the Core Types bundle, it looks like Apple's using them for more than just types of data.

<dict>
 <key>UTTypeDescription</key>
 <string>device</string>
 <key>UTTypeIdentifier</key>
 <string>public.device</string>
</dict>

It looks like entire device trees are here. public.computers are public.devices, PCs (public.generic-pc) and Macs (com.apple.mac) are public.computers, and so on.

As for identification, there's a new type of UTTypeTagSpecification, the com.apple.device-model-code (e.g. "MacBook2,1").

The whole hierarchy they define is very interesting. Check it out.

TrackBack

TrackBack URL for this entry:
http://www.drissman.com/cgi-sys/cgiwrap/drissman/mt/mt-tb.cgi/790

Post a comment