• 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
Permissions in an app bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Permissions in an app bundle


  • Subject: Permissions in an app bundle
  • From: Nir Soffer <email@hidden>
  • Date: Wed, 5 Jul 2006 12:42:26 +0300

I pack a directory structure in my app bundle, which used to create new "documents" by copying the a template directory and adding content. I prefer to have the directory in the bundle and not in application support folder, to allow drag and drop install.

Xcode is chmoding the app bundle using a-w, which make my new documents not writable by the user. I currently use Xcode ALTERNATE_PERMISSIONS_FILES to make the template directory user writable, which solve this problem. The app bundle is not writable except the template directory.

I wonder if this solution is good enough, or I should instead change the permissions after copying the template, which require little more code. For example, enumerate the new document directory and change the permission for all files using absolute modes (e.g. 0755). It seems really too much work compared to single chmod o+w call.

Another solution I considered is packing the template in an archive, and unpacking the archive instead of the copying. Is there an easier way to unpack an archive than using tar in a sub process?


Best Regards,

Nir Soffer

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Permissions in an app bundle
      • From: Uli Kusterer <email@hidden>
    • Re: Permissions in an app bundle
      • From: Tage Borg <email@hidden>
    • Re: Permissions in an app bundle
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Show/Hide Toolbar Menu Item in Document-based application
  • Next by Date: createDirectoryAtPath anomaly between system versions?
  • Previous by thread: Re: turning off anti-aliasing
  • Next by thread: Re: Permissions in an app bundle
  • Index(es):
    • Date
    • Thread