Re: Adding Document Types Programmatically
Re: Adding Document Types Programmatically
- Subject: Re: Adding Document Types Programmatically
- From: Ondra Cada <email@hidden>
- Date: Thu, 6 May 2004 19:51:26 +0200
Shaun,
On 6.5.2004, at 19:02, Shaun Wexler wrote:
>
My first thought was to simply modify the app bundle's Info.plist and
>
notify LS of the change using the new 10. API, but that would require
>
admin priv's to remain persistent. Ideas?
No, don't change /Applications: that would cripple security, and one
day may serve as an open door for viri.
Instead, I would try to use something like the well-known ancient way
of doing dynamic Services: add a (more or less) empty bundle with just
the appropriate Info.plist into ~/Applications, or some subfolder.
Currently it would probably need some extra code in there to redirect
the requests to the target application (being thus effectively
virus-prone too), but with some relatively simple tweaking from Apple
it may work automatically, without any user-domain code, and like a
charm.
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.