<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Inside Snow Leopard&#8217;s UTI: Apple fixes the Creator Code</title>
	<atom:link href="http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/</link>
	<description>Daniel Eran Dilger in San Francisco</description>
	<lastBuildDate>Sun, 05 Feb 2012 17:03:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: NormM</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21450</link>
		<dc:creator>NormM</dc:creator>
		<pubDate>Wed, 07 Oct 2009 17:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21450</guid>
		<description>I don&#039;t think UTI&#039;s are a good solution for content developers that want JPEG&#039;s they create to open in a particular app.

On the other hand, AppleScript provides a way to set &quot;default application&quot; in the &quot;System Events&quot; dictionary, so there&#039;s no missing programmatic capability.  Content developers can just use an AppleScript system service that saves the file with the current application as default.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think UTI&#8217;s are a good solution for content developers that want JPEG&#8217;s they create to open in a particular app.</p>
<p>On the other hand, AppleScript provides a way to set &#8220;default application&#8221; in the &#8220;System Events&#8221; dictionary, so there&#8217;s no missing programmatic capability.  Content developers can just use an AppleScript system service that saves the file with the current application as default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: walter</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21380</link>
		<dc:creator>walter</dc:creator>
		<pubDate>Sat, 03 Oct 2009 14:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21380</guid>
		<description>You seem to attribute the use of reverse DNS in things like UTI to a desire to correct the backwardness of forward DNS. But there is a more utilitarian explanation for why Apple may have selected reverse DNS order, especially in the context of preference files: sorting. When preferences files are sorted, they are naturally ordered by company, so all of the Apple application preferences are contiguous in a listing of preference directories. Using reverse DNS for other designations, such as UTI, is a natural way to preserve consistency.

While this generally makes sense, it is not without its drawbacks. For example, I have an application called LaTeX-iT. I do not know the reverse DNS name for this application. Instead, I have to go to my Preferences directory and obtain a listing for files matching *[Ll]a[Tt]e[Xx]* just to find the preference file. If the application name were first, I could just scroll down the total list to the &quot;L&quot; section and would have a pretty easy time finding things.

For the record: the name is fr.club.ktd.LaTeXiT.</description>
		<content:encoded><![CDATA[<p>You seem to attribute the use of reverse DNS in things like UTI to a desire to correct the backwardness of forward DNS. But there is a more utilitarian explanation for why Apple may have selected reverse DNS order, especially in the context of preference files: sorting. When preferences files are sorted, they are naturally ordered by company, so all of the Apple application preferences are contiguous in a listing of preference directories. Using reverse DNS for other designations, such as UTI, is a natural way to preserve consistency.</p>
<p>While this generally makes sense, it is not without its drawbacks. For example, I have an application called LaTeX-iT. I do not know the reverse DNS name for this application. Instead, I have to go to my Preferences directory and obtain a listing for files matching *[Ll]a[Tt]e[Xx]* just to find the preference file. If the application name were first, I could just scroll down the total list to the &#8220;L&#8221; section and would have a pretty easy time finding things.</p>
<p>For the record: the name is fr.club.ktd.LaTeXiT.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hylas</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21238</link>
		<dc:creator>hylas</dc:creator>
		<pubDate>Fri, 25 Sep 2009 20:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21238</guid>
		<description>Daniel wrote:

&quot;UTIs provide a standardized way for defining data anywhere in the system, one that transcends the Type/Creator Code&#039;s limited concept of a single app that creates given file types.&quot;


Which clarifies the subject of distinguishing between file formats / types.

I thought (this part of) walter&#039;s nutshell explained it well enough ...

&quot;All the application has to do is declare a new type to be an extension of the common format, and register itself as the handler for that custom type. Any files it creates can list themselves as the specialized type. If the document is an HTML document, any program can declare a type like com.company.program.html to extend public.html, and then handle that specialized type.&quot;

But then walter later clarifies:

&quot;However, there should be a way to declare a file as a special instance of a more generic type that does not depend on extensions.&quot;

Is this not what happens in a UTI, as per the flow chart?

http://images.appleinsider.com/uti092209.3.png


Better explained than I, going off half cocked (feature, not bug :-)

http://www.roughlydrafted.com/2009/09/07/inside-mac-os-x-snow-leopard-malware-protection/#comment-20674</description>
		<content:encoded><![CDATA[<p>Daniel wrote:</p>
<p>&#8220;UTIs provide a standardized way for defining data anywhere in the system, one that transcends the Type/Creator Code&#8217;s limited concept of a single app that creates given file types.&#8221;</p>
<p>Which clarifies the subject of distinguishing between file formats / types.</p>
<p>I thought (this part of) walter&#8217;s nutshell explained it well enough &#8230;</p>
<p>&#8220;All the application has to do is declare a new type to be an extension of the common format, and register itself as the handler for that custom type. Any files it creates can list themselves as the specialized type. If the document is an HTML document, any program can declare a type like com.company.program.html to extend public.html, and then handle that specialized type.&#8221;</p>
<p>But then walter later clarifies:</p>
<p>&#8220;However, there should be a way to declare a file as a special instance of a more generic type that does not depend on extensions.&#8221;</p>
<p>Is this not what happens in a UTI, as per the flow chart?</p>
<p><a href="http://images.appleinsider.com/uti092209.3.png" rel="nofollow">http://images.appleinsider.com/uti092209.3.png</a></p>
<p>Better explained than I, going off half cocked (feature, not bug :-)</p>
<p><a href="http://www.roughlydrafted.com/2009/09/07/inside-mac-os-x-snow-leopard-malware-protection/#comment-20674" rel="nofollow">http://www.roughlydrafted.com/2009/09/07/inside-mac-os-x-snow-leopard-malware-protection/#comment-20674</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: walter</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21226</link>
		<dc:creator>walter</dc:creator>
		<pubDate>Fri, 25 Sep 2009 14:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21226</guid>
		<description>I read the Ars Technica article, and extend my apologies for misinterpreting the facts. I did not know that the UTI type was determined from the file extension. Instead, I thought that this could be set.

It seems to me the best way to do this is what Siracusa mentions: define an extended attribute to store the UTI.

Extensions are useful, which is something old-time Mac OS guys don&#039;t always understand: when you aren&#039;t using a graphical interface to present a pretty icon describing the file type, the extension is a quick indicator. However, there should be a way to declare a file as a special instance of a more generic type that does not depend on extensions.</description>
		<content:encoded><![CDATA[<p>I read the Ars Technica article, and extend my apologies for misinterpreting the facts. I did not know that the UTI type was determined from the file extension. Instead, I thought that this could be set.</p>
<p>It seems to me the best way to do this is what Siracusa mentions: define an extended attribute to store the UTI.</p>
<p>Extensions are useful, which is something old-time Mac OS guys don&#8217;t always understand: when you aren&#8217;t using a graphical interface to present a pretty icon describing the file type, the extension is a quick indicator. However, there should be a way to declare a file as a special instance of a more generic type that does not depend on extensions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harmless</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21225</link>
		<dc:creator>harmless</dc:creator>
		<pubDate>Fri, 25 Sep 2009 14:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21225</guid>
		<description>As jdb above stated, UTIs are not a replacement for creator codes.
I tried to explain this in a bit more detail here:
http://www.harmless.de/log.php</description>
		<content:encoded><![CDATA[<p>As jdb above stated, UTIs are not a replacement for creator codes.<br />
I tried to explain this in a bit more detail here:<br />
<a href="http://www.harmless.de/log.php" rel="nofollow">http://www.harmless.de/log.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdb</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21208</link>
		<dc:creator>jdb</dc:creator>
		<pubDate>Thu, 24 Sep 2009 18:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21208</guid>
		<description>@walter

Most old time Mac OS users who use and like the file creator feature of the previous versions of Mac OS/OS X aren&#039;t going to be happy with needing a new file name extension for existing file types in order to do what they used to do with creator codes.

While there is a solution, in order to make it work in the current version of Snow Leopard, the developer has to define a new file extension. That means that file.html is now file.bbedit-html. Read the article from Ars Technica. It explains this in detail. 

From http://arstechnica.com/staff/fatbits/2009/09/metadata-madness.ars:
&quot;Given a file on disk, Mac OS X provides a way to get a UTI representation of that file&#039;s type. This may lead you to believe that, like the classic Mac OS type codes, there is a storage location somewhere in the file system for the UTI of each file. This is not the case. Instead, Mac OS X derives the UTI from other information, primarily—and tragically—from the file name extension.&quot;</description>
		<content:encoded><![CDATA[<p>@walter</p>
<p>Most old time Mac OS users who use and like the file creator feature of the previous versions of Mac OS/OS X aren&#8217;t going to be happy with needing a new file name extension for existing file types in order to do what they used to do with creator codes.</p>
<p>While there is a solution, in order to make it work in the current version of Snow Leopard, the developer has to define a new file extension. That means that file.html is now file.bbedit-html. Read the article from Ars Technica. It explains this in detail. </p>
<p>From <a href="http://arstechnica.com/staff/fatbits/2009/09/metadata-madness.ars" rel="nofollow">http://arstechnica.com/staff/fatbits/2009/09/metadata-madness.ars</a>:<br />
&#8220;Given a file on disk, Mac OS X provides a way to get a UTI representation of that file&#8217;s type. This may lead you to believe that, like the classic Mac OS type codes, there is a storage location somewhere in the file system for the UTI of each file. This is not the case. Instead, Mac OS X derives the UTI from other information, primarily—and tragically—from the file name extension.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdb</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21207</link>
		<dc:creator>jdb</dc:creator>
		<pubDate>Thu, 24 Sep 2009 18:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21207</guid>
		<description>@leicaman

The article implies that you can use a standard extension like .jpg and have an application override the default application for .jpg when a file is saved. This simply isn&#039;t true in Snow Leopard. Dan acknowledges that in his follow up.

&quot;So no, UTI isn’t a drop in replacement for Creators that does exactly the same thing, because doing exactly the same thing is not the desired behavior (from Apple’s perspective).&quot;

I agree. The old behavior is confusing and inconsistent to most users. Some few old-time Mac OS users are going to have to find a simple change to their work flow such as drag and drop of files on an open application or using a control-click Open With to open files in a different application from the default. This is better than the existing system where you never really know which application is going to open for a particular file without using Open With.

Any application that wants to retain the old behavior is going to have to define its own extension. Instead of file.html it will be file.bbedit-html. When done editing/authoring, export the file to use the standard extension.</description>
		<content:encoded><![CDATA[<p>@leicaman</p>
<p>The article implies that you can use a standard extension like .jpg and have an application override the default application for .jpg when a file is saved. This simply isn&#8217;t true in Snow Leopard. Dan acknowledges that in his follow up.</p>
<p>&#8220;So no, UTI isn’t a drop in replacement for Creators that does exactly the same thing, because doing exactly the same thing is not the desired behavior (from Apple’s perspective).&#8221;</p>
<p>I agree. The old behavior is confusing and inconsistent to most users. Some few old-time Mac OS users are going to have to find a simple change to their work flow such as drag and drop of files on an open application or using a control-click Open With to open files in a different application from the default. This is better than the existing system where you never really know which application is going to open for a particular file without using Open With.</p>
<p>Any application that wants to retain the old behavior is going to have to define its own extension. Instead of file.html it will be file.bbedit-html. When done editing/authoring, export the file to use the standard extension.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnWatkins</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21205</link>
		<dc:creator>JohnWatkins</dc:creator>
		<pubDate>Thu, 24 Sep 2009 16:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21205</guid>
		<description>It pleases me to see careful thought put into innovation for usability.

It seems like apple is the only *company* that puts in the effort to rethink things like this. Some companies have *people* or *departments* that work on these things, but in the end, the companies tend to worship the status quo and are typically afraid to break any eggs, even as they claim to want to make omelets. Apple is unique in that they consistently quest for innovative approaches to genuinely enhance usability or make something better. Gotta love it (even if it seems temporarily annoying.)</description>
		<content:encoded><![CDATA[<p>It pleases me to see careful thought put into innovation for usability.</p>
<p>It seems like apple is the only *company* that puts in the effort to rethink things like this. Some companies have *people* or *departments* that work on these things, but in the end, the companies tend to worship the status quo and are typically afraid to break any eggs, even as they claim to want to make omelets. Apple is unique in that they consistently quest for innovative approaches to genuinely enhance usability or make something better. Gotta love it (even if it seems temporarily annoying.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jabah</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21203</link>
		<dc:creator>jabah</dc:creator>
		<pubDate>Thu, 24 Sep 2009 15:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21203</guid>
		<description>Something to consider when suggesting that users should bug developers to add UTIs to their app is that UTIs were not well supported on Tiger and caused many  problems when you added them (for instance, stealing filetype associations from other applications which used Creator Codes instead of UTIs, IIRC). So if your app supports filetypes that other apps also support, you have to drop support for Tiger in order to add UTIs. Someone can correct me if I&#039;m wrong about this, but to this day I only have UTIs defined in my app for &#039;custom&#039; filetypes, while shared filetypes retain their old-style info.plist entries, due to the nightmare of confusion that ensured when I tried to add UTIs.</description>
		<content:encoded><![CDATA[<p>Something to consider when suggesting that users should bug developers to add UTIs to their app is that UTIs were not well supported on Tiger and caused many  problems when you added them (for instance, stealing filetype associations from other applications which used Creator Codes instead of UTIs, IIRC). So if your app supports filetypes that other apps also support, you have to drop support for Tiger in order to add UTIs. Someone can correct me if I&#8217;m wrong about this, but to this day I only have UTIs defined in my app for &#8216;custom&#8217; filetypes, while shared filetypes retain their old-style info.plist entries, due to the nightmare of confusion that ensured when I tried to add UTIs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leicaman</title>
		<link>http://www.roughlydrafted.com/2009/09/22/inside-snow-leopards-uti-apple-fixes-the-creator-code/comment-page-1/#comment-21201</link>
		<dc:creator>leicaman</dc:creator>
		<pubDate>Thu, 24 Sep 2009 14:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.roughlydrafted.com/?p=3823#comment-21201</guid>
		<description>@jbd: &quot;To summarize: There is no replacement in Snow Leopard for the ability of a program to set itself as the application that will open a particular file when that file is of a common type such as HTML or JPEG and not a custom format of the application.&quot;

To summarize: &quot;I didn&#039;t read the article carefully.&quot;</description>
		<content:encoded><![CDATA[<p>@jbd: &#8220;To summarize: There is no replacement in Snow Leopard for the ability of a program to set itself as the application that will open a particular file when that file is of a common type such as HTML or JPEG and not a custom format of the application.&#8221;</p>
<p>To summarize: &#8220;I didn&#8217;t read the article carefully.&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

