Sorry to revive an old thread. I've been out on vacation.

To clarify, my application is *not* sandboxed. The application who's prefs I'm 
interested in (Mail) is. The question is: Should that matter? Documentation 
says "no". Trial and error says "yes". Since no one seems to know, I guess I'll 
file a bug and see what happens.

On Aug 2, 2012, at 4:46 PM, Charles Srstka <cocoa...@charlessoft.com> wrote:

> This is obviously non-ideal, but in the absence of a better solution, you 
> could use the /usr/bin/defaults program. I just tried it, and it appears to 
> be able to read and write from Mail's defaults domain successfully.

Yes, it does. And wouldn't you assume it uses the NSUserDefaults class for 
that? But apparently not.

For now, I'm just using `dictionaryWithContentsOfFile:`, which is also 
non-ideal, but it works.

-- 
Rob McBroom
<http://www.skurfer.com/>


_______________________________________________

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

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

Reply via email to