Re: Authentication in preferencepanes
Re: Authentication in preferencepanes
- Subject: Re: Authentication in preferencepanes
- From: Nick Forge <email@hidden>
- Date: Sat, 7 Apr 2007 03:32:21 +1000
Hi,
Thanks for that, SFAuthorizationView is exactly what I needed. I have
put in an SFAuthorizationView on my preferencepane, and have called
setString to "system.privilege.admin".
I don't have a full grasp of the Authorization classes, but does
anyone know an easy way to hookup my SFAuthorizationView so that it's
authorized whenever the built-in prefPanes are? Is this something
that will require me to create or edit some security policies? Is
there an easy way to create an NSTask that has privileges that I have
gained through my SFAuthorizationView?
Thanks,
Nick
On 06/04/2007, at 3:31 AM, Deric Horn wrote:
Nick,
You may want to take a look at the SFAuthorizationView class
referenced
here:
http://developer.apple.com/documentation/Security/Conceptual/
Security_Overvi
ew/Security_Services/chapter_4_section_11.html
Deric Horn
Mac OS X Application Technologies Evangelist
Apple Worldwide Developer Relations
email@hidden
I have a PreferencePane that changes some system settings that
requires admin privileges. Is there an easy way to get the standard
apple "Click the lock to prevent further changes" widget and its
functionality into your own PreferencePanes?
This page here: http://www.dssw.co.uk/powermanager/ shows a custom
PreferencePane with an Apple style "lock authentication widget" at
the bottom. Have they "rolled their own," or is there some Apple code
that they have leveraged?
Thanks,
Nick Forge
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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