Proper authentication for a [System] Preference Pane
Proper authentication for a [System] Preference Pane
- Subject: Proper authentication for a [System] Preference Pane
- From: Murray Todd Williams <email@hidden>
- Date: Mon, 5 Nov 2001 11:41:54 -0500
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