• 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: user access privileges to plist in /library/preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: user access privileges to plist in /library/preferences


  • Subject: Re: user access privileges to plist in /library/preferences
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 3 Apr 2009 15:12:03 -0700

Memo Akten wrote:

I'm using -[NSDictionary writeToFile:atomically:] so I guess this isn't an option. But seeing as this file will not exist unless it was created by my app, and neither will the containing folder which I will create with full permissions, any file created in this folder will inherit the parents permissions?

No, it won't. Neither files nor dirs inherit permissions from the enclosing folder when being created. That's why it's important that you understand what the defaults are, how umask affects them, and what the parameters to the function do. This is covered in the man pages or other references. Please read them.


  -- GG

_______________________________________________

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


  • Prev by Date: Re: Bindings and MenuItems
  • Next by Date: Re: NSString* kMyKey = @"aKey" vs #define MYKEY @"aKey"
  • Previous by thread: Re: user access privileges to plist in /library/preferences
  • Next by thread: Re: How to animate the drawing of UIImages inside a drawRect: method of a UIView?
  • Index(es):
    • Date
    • Thread