Re: reading preferences from com.apple.mail under 10.8
Re: reading preferences from com.apple.mail under 10.8
- Subject: Re: reading preferences from com.apple.mail under 10.8
- From: Rob McBroom <email@hidden>
- Date: Mon, 13 Aug 2012 13:59:10 -0400
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 <email@hidden> 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 (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