Hi all. I'm trying to write a Movie Importer component, and I'm finding a perplexing pile of file-association methods in the process.
The current method of file-to-application mapping is supposed to be UTIs, but I don't think this is working for me. I was told that to get QuickTime Player X to open a new media type, you have to create a stub app that advertises support for your media type using UTIs and then dishes the file off to QuickTime Player for opening (using a component you've created). I set up the UTI specifications in the stub app's info.plist as documented here: http://developer.apple.com/macosx/uniformtypeidentifiers.html I also looked at the Perian project, which uses this mechanism, so I'm pretty sure I have the plist set up correctly. But in Xcode, if you look at a build target's Properties tab, you can specify "Document Types" there too. I found that putting an entry here DID result in my app getting called when a file with the right name extension was double-clicked in Finder. But if I removed that entry, my app was no longer called. QuickTime Player was then called instead; Finder's "Get Info" shows this assocation, but I don't know how it got set. Does anyone know how the "Document Types" entries in the target are reconciled with "Imported type UTIs" in the app's plist? The first one seems to have taken precedence over what Finder shows, but the second didn't. Also, how does one determine why an app is being used to open a document? In my case, the association is visible in Finder's "Get Info", but I don't know how it got that way and I don't know that it will be this way on customers' machines. So I need to test my app and component to make sure they work on a "clean" system. How does one clear the association in Finder entirely? Thanks for any insight. Gavin _______________________________________________ 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