Re: CFPreferences and Mountain Lion

2012-06-23 Thread Alex Zavatone
Because of the annoyance of sandboxing on iOS, I've been thinking how to write simple prefs outside the app so that I know the pref is written when I write it (no, iCloud is not a suitable solution). Currently, I'm thinking of these options: Declare an address, a music file or a picture as a da

Re: CFPreferences and Mountain Lion

2012-06-22 Thread Stephane Sudre
On Thu, Jun 21, 2012 at 10:27 PM, Scott Ribe wrote: > I'm not sandboxed, and the preferences I'm sharing are between my own apps. > Also it variously works then doesn't work for a while on the same machine, > same OS release, same app build. Can you post a small sample code showing how you save

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Scott Ribe
I'm not sandboxed, and the preferences I'm sharing are between my own apps. Also it variously works then doesn't work for a while on the same machine, same OS release, same app build. On Jun 21, 2012, at 2:13 PM, Chad Hulbert wrote: > Sharing preferences between applications is not something yo

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Preston Sumner
On Jun 21, 2012, at 1:20 PM, michael.dom...@identityfinder.com wrote: > > Ditto for me, my prefs are sometimes not getting to disk ever, so I can't > rely on seeing preferences set the way I left them. This only happens for me > on 10.8, Lion does not exhibit this problem in my app. This topic

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Chad Hulbert
Sharing preferences between applications is not something you can rely on in a sandboxed environment. On 10.7, Preview and TextEdit are sandboxed so if you're seeing this behavior with them, that's why. You can reasonably expect more applications to be sandboxed in the future. On 6/21/12 2:44 P

Re: CFPreferences and Mountain Lion

2012-06-21 Thread michael . domino
2012 2:44pm To: "Kyle Sluder" Cc: "Michael Domino" , cocoa-dev@lists.apple.com Subject: Re: CFPreferences and Mountain Lion On Jun 21, 2012, at 12:39 PM, Kyle Sluder wrote: > I guess the question is, why do you care whether the preferences have been > written

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Scott Ribe
On Jun 21, 2012, at 12:39 PM, Kyle Sluder wrote: > I guess the question is, why do you care whether the preferences have been > written to disk? As long as everyone is using the correct API to access > preferences, it doesn't matter whether CFPreferences is caching them in > memory before flush

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Kyle Sluder
On Jun 21, 2012, at 11:33 AM, Scott Ribe wrote: > On Jun 21, 2012, at 12:17 PM, Michael Domino wrote: > >> My preferences code strictly uses the CFPreferences api and has worked >> reliably since Tiger. On Mountain Lion Preview 4 (with the recent update), >> though, preferences writing has been

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Scott Ribe
On Jun 21, 2012, at 12:17 PM, Michael Domino wrote: > My preferences code strictly uses the CFPreferences api and has worked > reliably since Tiger. On Mountain Lion Preview 4 (with the recent update), > though, preferences writing has been erratic, sometimes my preferences are > updated correc

Re: CFPreferences and Mountain Lion

2012-06-21 Thread Kyle Sluder
On Jun 21, 2012, at 11:17 AM, Michael Domino wrote: > Hi all, > > My preferences code strictly uses the CFPreferences api and has worked > reliably since Tiger. On Mountain Lion Preview 4 (with the recent update), > though, preferences writing has been erratic, sometimes my preferences are > u

CFPreferences and Mountain Lion

2012-06-21 Thread Michael Domino
Hi all, My preferences code strictly uses the CFPreferences api and has worked reliably since Tiger. On Mountain Lion Preview 4 (with the recent update), though, preferences writing has been erratic, sometimes my preferences are updated correctly, sometimes not. Are there any known issues