Re: Preferences, Authorization, Writing files
Re: Preferences, Authorization, Writing files
- Subject: Re: Preferences, Authorization, Writing files
- From: Frank Fenn <email@hidden>
- Date: Fri, 7 Feb 2003 10:43:15 -0700
On Friday, February 7, 2003, at 09:05 AM, Chris Hanson wrote:
Hi all,
It sounds like you're assuming that Authorization Services will grant
privileges to your preference pane. It won't. In Unix privileges
can't be granted to running processes, they can only be granted to new
processes or reduced for running processes.
Okay, that is understandable
To write your data, you'll need to run a small helper utility with
administrator privileges using Authorization Services. There's sample
code on Apple's web site demonstrating how to do this.
What would be the best way to pass the NSMutableArray to the helper
tool then, so I can use NSArchiver
on it? Or can I use DO to access the array from within the helper tool?
--
regards
Frank Fenn - Bright Light Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.