Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SFAuthorizationView and Pref pane



Hi Martin,

On Dec 14, 2004, at 1:54 AM, Martin Kautz wrote:

Hello list,

I just wrote up a small pref pane to start/stop Tomcat. It's no big deal and
just for personal use. However, since the triggered start skript for Tomcat
needs to get admin's permissions, I need to use some of the stuff from the
Security Framework. I basicly grabbed a lot of stuff from other projects to
put it together and it works as expected...


However, to get a consistent view of my pane, yesterday I decided to use the
SFAuthorizationView to control gaining root access... And now I'm in trouble
because I need to know more about the lifecycle of a pref pane as well as
about the security concept. Currently my pane is doing something weird,
after starting up and requesting an 'unlock' it is requesting the
authorization twice(!). Note that I'm able to cancle the second auth
request, without losing the authorization done by the first time!


Meanwile I found the announcement of a sample pref pane using
SFAuthorizationView from an Apple fellow (the announcement is from March
2004) but there is still no sample code available.

That probably was me, since I am working on such a sample as time allows.


If you send email to <email@hidden> asking for the SFAuthorizationView sample, I will send the code to you in its current state. (You will not be charged a tech support incident for this.)

The sample is functional enough to illustrate how to use the view, but the part about actually performing a privileged operation isn't in the code yet. Fortunately that process is well documented and there are a handful of samples illustrating the process.


Question: Anybody out there with a pref pane using SFAuthorizationView to
learn from?


Sorry for my bad english,
Martin

Regards, --gc

--

/**
 * Your mouse has moved!
 * Windows needs to be restarted for changes to take effect!
 */




_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden


__________________________________________________________________
Garth Cummings				
Apple Developer Technical Support 	email@hidden

http://developer.apple.com/technicalsupport

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden

References: 
 >SFAuthorizationView and Pref pane (From: Martin Kautz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.