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: Murray Todd Williams <email@hidden>
- Date: Mon, 5 Nov 2001 13:14:50 -0500
Eric, thanks for the very succinct information. I'll take a look at it.
One thing that bugs me: I was tinkering around in the
PreferencePane.framework bundle and noticed in the Resources folder the
icons for the lock/unlock symbols. It makes me think that there SHOULD
be some way to get the Authentication handled like it is with the real
(OS X) System Preference panels.
I do remember hearing that NIInterface and NIAccess frameworks are
deprecated. (And I suspect that's where NIAuthenticationButton comes
from.) Will there be an official (published) way to do things that
superceeds these frameworks? Well, I'll take a look at those examples
and articles to see. With luck they will answer all my questions.
Murray
On Monday, November 5, 2001, at 12:39 PM, Eric Peyton wrote:
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev