• 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: reading preferences from com.apple.mail under 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >reading preferences from com.apple.mail under 10.8 (From: Rob McBroom <email@hidden>)
 >Re: reading preferences from com.apple.mail under 10.8 (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: How do I get memory usage numbers?
  • Next by Date: Re: Classes incompatible with weak references
  • Previous by thread: Re: reading preferences from com.apple.mail under 10.8
  • Next by thread: Re: reading preferences from com.apple.mail under 10.8
  • Index(es):
    • Date
    • Thread