Re: Proper authentication for a [System] Preference Pane
Re: Proper authentication for a [System] Preference Pane
- Subject: Re: Proper authentication for a [System] Preference Pane
- From: Eric Peyton <email@hidden>
- Date: Mon, 5 Nov 2001 11:39:18 -0600
Do Not use NIAuthentication button.
But your own button on there and turn it on and off using the system
security framework authorization scheme, as documented in this list, on
stepwise and in lots of sample code.
Check out Brian Hill's article on stepwise, or I prefer Bill Bumgarner's
sample code for XOptimize.app. It includes a sample lock icon, etc.
Eric
On Monday, November 5, 2001, at 10:41 AM, Murray Todd Williams wrote:
I'm trying to build a System Preferences pane to configure database
(ODBC) sources for the unixODBC driver manager. Some of the settings
that need to be configured in this pane are "system settings" which
must be done as root. For these I am guessing that the most appropriate
thing to do would be to have that little "Click the lock to make
changes" button that is so pervasive among other System Preference
panes.
I was clever enough to dig through the StartupDisk system preference
pane and edit its .nib file in Interface Builder to see that it was
using a NIAuthenticationButton widget. I even used the clipboard to
copy the widget and paste a duplicate onto my own .nib file.
The problem is that I can't find any information about a
NIAuthenticationButton class anywhere to do anything useful with the
widget. I'm guessing it's one of the "Private Frameworks" like
NIInterface or NIAccess, but there aren't any header files that I can
find so I'm stuck.
Can anybody point the in the right direction so I don't turn this into
a hopelessly ugly (or insecure) hack?
Cheers!
Murray Todd Williams
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev