On Wed, Feb 11, 2009 at 5:55 AM, Trygve Inda <cocoa...@xericdesign.com> wrote:
> In my helper app I use:
>
> userDefaults =
> [[NSUserDefaults standardUserDefaults]
> persistentDomainForName:kMainAppIdent];
>
> You just need to make sure there is no chance of the helper and the host
> writing at the same time to the same file.

Actually there is no such need. The user defaults system is smart
about synchronizing simultaneous changes from multiple processes, and
will do the right thing if both of your processes should hit the file
at the same time.

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to