• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re : Proper way to initialize application support file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re : Proper way to initialize application support file (From: Peter Hudson <email@hidden>)

  • Prev by Date: Re : Proper way to initialize application support file
  • Next by Date: cocoa API to get List of hard disk Partitions
  • Previous by thread: Re : Proper way to initialize application support file
  • Next by thread: Re : Proper way to initialize application support file
  • Index(es):
    • Date
    • Thread