Re: Re : Proper way to initialize application support file
Re: Re : Proper way to initialize application support file
- Subject: Re: Re : Proper way to initialize application support file
- From: Graham Lee <email@hidden>
- Date: Thu, 18 Feb 2010 09:39:25 +0000
On 18 Feb 2010, at 09:36, Peter Hudson wrote:
> ".... Files that are necessary should be inside your app bundle, usually."
>
>
>
> I put some files into the app bundle which were essential for the app to run -
> but also needed to be modified at run time.
>
Those definitely shouldn't be changed inside the app bundle, as you'll break your code's identity.
> The first time our app was installed on a server ( for a number of users to have access to )
> we got into trouble as the sysadmin would not give write permission on the application folder
> to anybody.
>
> Is there another way to do this ?
You could _distribute_ them in the app bundle, then copy the files to ~/Library/Application Support/com.yourcompany.yourapp/ when it is first launched. Use and change the deployed copies from then on.
Cheers,
Graham.
--
Graham Lee
http://blog.securemacprogramming.com/
Coming soon - Professional Cocoa Application Security
http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0470525959.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden