Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > Re: CFPreferenc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 3782 of 3882
Post > Topic >>

Re: CFPreferencesAppSynchronize failed

by Gregory Weston <uce@[EMAIL PROTECTED] > Jun 26, 2008 at 09:33 AM

In article 
<9e734c7c-9d01-4e15-8d7e-d204cdee1bd7@[EMAIL PROTECTED]
>,
 p2 <pradip.patel@[EMAIL PROTECTED]
> wrote:

> > Your options are:
> > a) Only save this change when running as an admin user; if the synch
> > fails, fall back to user-local storage.
> > b) Write someplace else, essentially recreating a ****tion of the
> > CFPreferences API.
> > c) Use some form of privilege escalation like a single-purpose setuid
> > tool running as root to save this setting.
> >
> > I advocate course (a) unless it's critical that this value be
identical
> > for all users. (b) and (c) both have shortcomings that are beyond the
> > scope of this message - the increased complexity in comparison to (a)
is
> > probably the least of your worries.
> 
> Hi
> 
> I cann't get..it's like to save for individual user.
> 
> But I want to save from admin as well as from nonadmin..
> Can you please tell me which is the common access path for all users
> to save and update preferences ?
> 
> please look because it work for 10.4 and not for 10.5

I still say it's working for 10.4 because you're not running in the 
environment you think you are.

I also still say (a) is the best course unless your program really 
*needs* that preference value to be universal. Frankly, I can only think 
of a couple of situations where that's the case, and almost all of those 
can be handled at installation time.

The only location that it guaranteed to be world-writable on a Mac OS X 
system is /Users/Shared. The biggest problem is that the closest we have 
to guidelines for writing there is "don't." This can kind of be inferred 
by the lack of a domain constant referencing it, and there are very 
strong feelings in some quarters about software blindly writing to that 
directory.

If (a) isn't viable for you, the correct option is (c). But it's also 
the most difficult. Look at the do***entation and sample code for the 
Authorization API.

-- 
"Harry?" Ron's voice was a mere whisper. "Do you smell something ...
burning?"
   - Harry Potter and the Odor of the Phoenix
 




 7 Posts in Topic:
CFPreferencesAppSynchronize failed
p2 <pradip.patel@[EMAI  2008-06-24 03:13:06 
Re: CFPreferencesAppSynchronize failed
Gregory Weston <uce@[E  2008-06-24 07:23:10 
Re: CFPreferencesAppSynchronize failed
p2 <pradip.patel@[EMAI  2008-06-24 04:54:32 
Re: CFPreferencesAppSynchronize failed
p2 <pradip.patel@[EMAI  2008-06-25 22:46:12 
Re: CFPreferencesAppSynchronize failed
Gregory Weston <uce@[E  2008-06-26 09:33:21 
Re: CFPreferencesAppSynchronize failed
p2 <pradip.patel@[EMAI  2008-06-25 23:06:02 
Re: CFPreferencesAppSynchronize failed
Gregory Weston <uce@[E  2008-06-26 09:19:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 1:31:18 CST 2008.