On Jan 15, 2007, at 11:28 AM, Christopher Linn wrote:
On Jan 12, 2007, at 2:24 PM, Daniel Birns wrote:
I have a related concern. Our application is associated with
documents that have a .dart suffix. The problem is that that
suffix is already used by Apple: com.apple.disk-image-dart.
We can't really change it, because it's already in use on other
platforms. And we like it.
Currently I'm overriding this default in a way that's working but
is kind of ugly. I haven't encountered a .dart disk image
before, and it doesn't seem to be in much use, so I think
overriding this is fairly safe.
I'm glad you said this. I was thinking it but could off the top of my
head explain why it's such a bad thing. ;-)
The preferences file could change in the future, causing this
technique to stop working or, worse, to break other binding
preferences. Also, rebuilding the whole LS cache can have other
side effects,
Ah yes, I should have thought of this. Here are a couple of those
side effects now that I think about it:
- The user will loose all of the custom bindings for opening files of
a particular type. For example, if he's set BBEdit to open .txt
files, that binding will be lost. A lot of users set one or more of
these, so they aren't going to be happy if you cause all those to go
away.
- All trusted applications will loose that status. The user will then
have to deal with a round of confirming that it's okay for various
applications to launch.
and it's very expensive.
Happily, there is API which will do exactly what you want. Here is
function call to make:
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden