hitcounter
This site is an rss/xml news reader containing our favorite feeds. All articles are the copyrighted material of the blogs that wrote them.

C:\ONGRTLNS.OSX

Or: There Is No Replacement for Creator Codes in Snow Leopard

Ignore, for the moment, the specific technical details of how creator codes work (or, perhaps better put, worked). What matters is the behavior they enabled, which was the ability for documents of the same type to open in different applications by default. A very common case: HTML files. For things like readmes and other files downloaded from the web intended to be read as rendered HTML content, yes, I want them to open in my web browser by default. But for “.html” files I’ve created myself, I want them to open in my text editor by default. That used to work; now, in Snow Leopard it does not.

Launch Services is the subsystem on Mac OS X that determines which application will open a file by default. What I mean by “by default” is that you, the user, indicate that you want to open a file, without directly specifying which app you want it to open in. For example (and very commonly), a document is opened by its default handler when you double-click the file in the Finder.

Starting in Snow Leopard, these default file bindings are determined entirely by file name extensions and HFS+ creator codes, if present, are ignored. The only way in Snow Leopard to set a document to open with an app other than the one that claims ownership of that document’s file name extension is to use the Finder’s Get Info window to make the assignment manually. Behind the scenes, this adds a “usro” resource to the document’s resource fork, the contents of which resource are not the app’s bundle identifier (e.g. “com.apple.TextEdit”) but rather a hard-coded string with the path to the app itself (e.g. “/Applications/TextEdit.app”).

That’s it — file name extensions and these “usro” resources are the only remaining ways to bind a file to an application. And, as Chris Suter documents in this piece on his weblog, the only way to add such a resource to a file is by way of a private Launch Services API. Users can do it manually using the Finder’s Get Info window, but there is no supported public API developers can use to do this in third-party software (cf. this thread on Apple’s Cocoa-Dev mailing list from two weeks ago).

Now, as for the actual technical details of type and creator codes, there’s no question that they’re dated. (Not as dated as file name extensions, though.) They date all the way back to the original Macintosh in 1984, a machine with 128 kilobytes of RAM and used 400 kilobyte floppy disks for storage. Every byte was precious, so type and creator codes (along with numerous other aspects of the original Mac OS) were implemented with concise but cryptic four-byte codes (“OSTypes”). As an aid to human readability, the four-byte codes were typically rendered as four-character MacRoman-encoded strings. Many of these strings are naturally mnemonic: The type code for a plain text file is “TEXT”, the type code for an application is “APPL”. I’ll bet you can guess the type code for JPEG files. Application creator codes were often cute: the Finder’s creator code is “MACS”; BBEdit, created by Rich Siegel, has the creator code “R*ch”.

But there’s only so much you can do with four bytes. There’s no good reason today to cram everything into four-byte codes (nor any good reason to use a single-byte text encoding for strings). Mac OS X 10.0 introduced a superior way to uniquely identify applications: bundle identifiers. Bundle identifiers like “com.apple.Safari” and “com.apple.iTunes” are more expressive, informative, and obvious than creator codes like “sfri” and “hook”.

So as John Siracusa pointed out in his “Metadata Madness” piece, there is no need for a “replacement” for creator codes. The replacement is the bundle identifier, and it has been here since 2001. Every Mac app already has a unique bundle identifier. What is missing, though, is any supported way to associate a bundle identifier with an individual file to indicate to Launch Services the preferred app to open that particular file.

In the old type/creator code system, files were assigned to applications on an individual basis. In Snow Leopard, Launch Services only considers the file’s type, the type comes from the file name extension, and default bindings can only be managed between types and apps, rather than individual files and apps.

Snow Leopard, effectively, gives us the file-to-application binding policy from Windows 3.0.

Interpolation Regarding Uniform Type Identifiers and Purported Claims That They ‘Fix’ Creator Codes

Each time I’ve linked to coverage elsewhere regarding Snow Leopard’s disavowal of creator codes, a few readers have kindly emailed me links to Daniel Eran Dilger’s piece on the topic, entitled “Inside Snow Leopard’s UTI: Apple fixes the Creator Code”, assuming that the article proves what it claims. It does not. I off-handedly referred to it as “blathering” last week, prompting several readers to ask why I’d say such a thing.

So, OK, I’ll bite.

The title of the piece claims “Apple fixes the Creator Code”. Then in the first paragraph:

Instead, Apple has invented a superior alternative for the old Creator Code in order to support a variety of new features. Here?s why, and what the new Uniform Type Identifiers offer.

That sounds interesting, especially since my understanding of UTIs was that they do not in any way replace the functionality of creator codes.

Then come 2,900 words, none of which explain what was promised in the headline and first paragraph.

Then comes the penultimate paragraph, where Dilger writes:

Users who miss being able to automatically open a file using the app that originally created it can pester their app’s developer to get on the ball with UTI. Any application that has been updated since 2005’s Tiger, but which does not yet support UTI, has opted not to support an important feature of the Mac platform.

This is simply flat-out wrong. There is nothing any developer can do, with UTIs or with any other supported technology, to restore the functionality of creator codes in Snow Leopard. It’s just wrong. UTIs indicate a file’s type, not the application in which it should open by default. Furthermore, developers can’t even directly assign UTIs to files. UTIs are derived from file name extensions.

And then we come to the very last paragraph:

Everyone else, including many of us who didn’t ever understand why the system launched files using a specific app rather than the one we had defined for that given file type, can continue using the Finder’s Open With menu, drag and drop app launching, or set a permanent per-item default “creator” app for opening a selection of documents by using the Get Info panel.

So, after claiming at the outset that Apple has “fixed” creator codes by “inventing a superior alternative”, followed by 3,000 words of muddled technical information regarding a technology that is unrelated to binding files to applications, Dilger admits that there is no replacement for creator codes in Snow Leopard, but it’s good news anyway because he never liked the previous behavior in the first place. His closing paragraph is technically accurate, but is completely at odds with the article’s title and opening premise — unless he meant that Apple has “fixed” creator codes in the same sense that one “fixes” a dog.

People want to believe that Apple wouldn’t take out a popular feature and replace it with nothing, but that’s the plain truth.

End of Interpolation, Back to the Main Point, Which, as a Gentle Post-Interpolation Reminder, Left Off With a Snide Remark About Snow Leopard’s File-to-Application Binding Policy Being Effectively the Same as That of Windows 3.0

Take a step back and consider that the term creator code itself shows just how different things are today. When the Mac was created, nearly all documents were proprietary binary file formats. The only app that could read MacWrite files was MacWrite, etc. Even when apps could read other apps’ file formats, they typically did so only through an import/export process. You could, say, import a Word document into ClarisWorks, but not by opening the file directly and writing back to it.

Today, on the other hand, many of the files we work with use common, open file formats: text files, JPEG and PNG graphics, MP3 audio, MP4 video, etc. When you double-clicked a MacPaint file in 1985, there was no question which app you wanted to open it: MacPaint. Today, though, there might be a dozen apps on your system that can open a JavaScript source code text file or an MP3 audio file. “The app that created it” can no longer be assumed to be the answer to the question “Which app would you prefer to open this file with by default?”

The situation is therefore far more complex today. One way Apple has dealt with this complexity is with the fairly-recent addition of the “Open With…” contextual menu in the Finder, which shows a list of apps that claim to be able to open files of the selected item’s type. And there’s always drag-and-drop.

The creator code long ago stopped meaning “the app that created the file”, and instead meant “the app this file should open with by default”. What matters is that the feature is now gone, not what it was called or what a hypothetical actual replacement in the future would be called.

And to be clear, the new binding policy in Snow Leopard is popular with many users. If you really want all files of the same type to open in the same app by default, then a system based exclusively on file name extensions works. Apple could have replaced creator codes with something superior, based on bundle identifiers, but they did not. And even if they plan to do so in the future,1 there is no good reason for dropping creator code support from Launch Services now, before the replacement arrives. The simple truth is that many people — including, obviously, at Apple — prefer binding files to applications exclusively through file name extensions.

“Make it a preference” is often (if not usually) the wrong way to solve a problem, but a case like this, where many people prefer it one way and many prefer it the other, is exactly the sort of situation that calls for a preference setting.

I could go on and rant about the inherent inelegance of storing two essential pieces of a file’s metadata, name and type, in a single field — shackling what Apple proclaims to be “the world’s most advanced operating system” to a metadata limitation of MS-DOS from 1981 — but there’s no use crying over spilled milk.


  1. Don’t hold your breath. 



Read The Full Article:
http://daringfireball.net/2009/10/congrtlns-osx


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

Ballmer sees little help from Windows 7 for PC
sales

Microsoft chief Steve Ballmer today cast doubt on the likelihood that the imminent release of Window...



Read The Full Article:
http://feeds.macnn.com/click.phdo?i=aa20f8002d85abc3dfc06f12442439e2


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

Jumsoft Enhances its Keynote Quartet with Keynote
Animations FX 7.0

Jumsoft today released Keynote Animations FX 7.0, an update to its selection of products for Apple's Keynote. This set presents 100 exciting animated images suitable for any occasion, including 30 brand-new additions that feature superb animation quality and spectacular creativity. The animations can easily be applied to any slide, as well as effortlessly positioned, blended, mixed, overlaid, underlaid, and much more.

Read The Full Article:
http://prmac.com/release-id-7897.htm


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

Sanyo intros Cube alarm radio for iPod, dual dock
system

Sanyo on Wednesday introduced two new products made to work with Apple's docking iPods and iPhones, ...



Read The Full Article:
http://feeds.macnn.com/click.phdo?i=862d25e99fdd0c99b1d506b8e005e169


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

App Store profits extremely difficult, developers
say

Despite initial impressions given by Apple and the media, success stories at the App Store are a...



Read The Full Article:
http://feeds.macnn.com/click.phdo?i=9e2abc10bb746475c8562693d080b03e


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

Study Finds That 85% of Mac Owners Also Have a PC


npd-group-march09Mac users may be getting soft on Windows machines as time moves on, according to a recent report by consumer research firm NPD Group. It found that of those polled, a whopping 85 percent admitted to owning both Mac and Windows PC computers.

That’s a far cry from the polarized days of yore, when even joking that you had a Windows PC, even if you actually did, would get you banned from the local Mac user group. But is the cause less diehard Mac heads, or more PC users flirting with and even giving comfort to the enemy?

The stat was one of the headliners of NPD Group’s dubiously named “2009 Household Penetration Study,” which was released yesterday. PC World lists the details of the report, which includes statistics regarding the presence of PCs and Macs in U.S. households.

Mac ownership is up to 12 percent from only eight in 2008, a four percent increase over the course of only one year. A lot of those new Mac owners probably aren’t in the habit of throwing away perfectly good computers, even if they are Windows machines, which could account for some of that 85 percent.

The study also found that Mac owners are unusually covetous of gadgetry. Two-thirds of Mac-owning households have three or more computers, and they also generally own at least twice as many electronic devices as the average PC owner. Specifically, Apple fans generally own 48 versus the average of 24. Finally, I can tell my friends and family that what they think is a tech addiction is actually par for the course among people with Mac love.

npd_studyApple-owners are also much more likely to go mobile, with 72 percent going with a notebook, versus only 60 percent in Windows households. Sort of explains why the Starbucks window always looks like a Macbook showroom.

By comparison, the number of Windows PC households that have more than three computers stands at only 36 percent, which is almost three times less than their Mac counterparts. If I was Windows marketing, I’d probably ask why Mac users feel that they need more than three computers to do the same work as just one or two of their PC equivalent. I suspect the real reason has more to do with Mac users loving their computers as objects, independent of what they can do with them.

So I feel pretty pigeonholed following this report. I own five computers, one of which is a PC, and at least 48 gadgets are scattered around my apartment. I also own three notebooks. Anyone else feel like the nail being hit on the head after reading this?



Read The Full Article:
http://theappleblog.com/2009/10/07/study-finds-that-85-percent-of-mac-owners-also
-have-a-pc/


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

85% of Mac Owners Also Have a PC: Report


npd-group-march09Mac users may be getting soft on Windows machines as time moves on, according to a recent report by consumer research firm NPD Group. It found that of those polled, a whopping 85 percent admitted to owning both Mac and Windows PC computers.

That’s a far cry from the polarized days of yore, when even joking that you had a Windows PC, even if you actually did, would get you banned from the local Mac user group. But is the cause less diehard Mac heads, or more PC users flirting with and even giving comfort to the enemy?

The stat was one of the headliners of NPD Group’s dubiously named “2009 Household Penetration Study,” which was released yesterday. PC World lists the details of the report, which includes statistics regarding the presence of PCs and Macs in U.S. households.

Mac ownership is up to 12 percent from only eight in 2008, a four percent increase over the course of only one year. A lot of those new Mac owners probably aren’t in the habit of throwing away perfectly good computers, even if they are Windows machines, which could account for some of that 85 percent.

The study also found that Mac owners are unusually covetous of gadgetry. Two-thirds of Mac-owning households have three or more computers, and they also generally own at least twice as many electronic devices as the average PC owner. Specifically, Apple fans generally own 48 versus the average of 24. Finally, I can tell my friends and family that what they think is a tech addiction is actually par for the course among people with Mac love.

npd_studyApple-owners are also much more likely to go mobile, with 72 percent going with a notebook, versus only 60 percent in Windows households. Sort of explains why the Starbucks window always looks like a Macbook showroom.

By comparison, the number of Windows PC households that have more than three computers stands at only 36 percent, which is almost three times less than their Mac counterparts. If I was Windows marketing, I’d probably ask why Mac users feel that they need more than three computers to do the same work as just one or two of their PC equivalent. I suspect the real reason has more to do with Mac users loving their computers as objects, independent of what they can do with them.

So I feel pretty pigeonholed following this report. I own five computers, one of which is a PC, and at least 48 gadgets are scattered around my apartment. I also own three notebooks. Anyone else feel like the nail being hit on the head after reading this?



Read The Full Article:
http://theappleblog.com/2009/10/07/study-finds-that-85-percent-of-mac-owners-also
-have-a-pc/


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

Gartner: Android to overtake iPhone in 2012

Google's Android will be the second-largest smartphone platform in as little as three years, accordi...



Read The Full Article:
http://feeds.macnn.com/click.phdo?i=4a84cd5c7588be37169950864e63db1a


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

DoubleTwist Adds Built-In Interface to Amazon MP3
Store

Check out the screencast demo. Looks like a great interface — if anything, it’s less cluttered than the iTunes Store.

 ? 

Read The Full Article:
http://www.doubletwist.com/dt/Home/Index.dt


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!

Macware Participates in Mac Security Bundle -
Offers Huge Savings

Macware Inc. announced today it is offering WebGhost as part of Intego's exclusive bundle of Mac security software products. The Mac Security Bundle is available now through October 31 and can only be purchased online at MacPromo. The bundle contains 12 applications that address the comprehensive security needs of today's Mac users, and offers 90% off the total price of the programs, if purchased individually.

Read The Full Article:
http://prmac.com/release-id-7884.htm


Add to del.icio.us   Digg this   Post to Furl   Add to reddit   Add to myYahoo!
Apple Tattoo Photograph Courtesy of Gerard
Website designed by Bartosz Brzezinski
Powered by blogdig.net