Re: Default app for doc type problem
Re: Default app for doc type problem
- Subject: Re: Default app for doc type problem
- From: Neil Earnshaw <email@hidden>
- Date: Sat, 13 Sep 2003 00:12:41 +0100
Hi,
I've written a simple Cocoa Document based application which views PDF
files. I've set all the appropriate Info.plist values (Identifier,
Type, Signature, etc.) and can set it as the default app for the PDF
docs. I can double click PDF documents to load them and drag documents
onto the application icon in the dock and all that good stuff.
Things get a little confused when I install a new version over an old
version. If I have the app icon in the dock dragging a document to it
doesn't necessarily open the doc in the app anymore unless I remove
the icon and put it back again. And if the previous version was set as
the default viewer for PDF files the new version doesn't necessarily
become the default viewer. Instead I have to make Preview the default
viewer and then change back to my app again. The new version has the
same name and is copied over the previous version. The only Info.plist
entry I change b/w versions is the version number.
Mac OS X seems to track the original application that created file or
is associated with a file type. Suppose your first version of an app
creates a file and you tell Finder to use that app to open the file
type. Later, you move the first version to the trash and put a new
version in the Applications directory. When you try to open a file of
the required type, Finder starts up the app that you put in the trash!
If you are using an app that's still evolving, you might be better off
putting an alias in the Applications directory that refers back to the
app in your build directory. This seems to work for me - I haven't had
any old app versions rising from the grave since I switched to an alias.
Hope this helps,
-Neil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.