• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Proper authentication for a [System] Preference Pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Proper authentication for a [System] Preference Pane
      • From: Finlay Dobbie <email@hidden>
    • Re: Proper authentication for a [System] Preference Pane
      • From: Murray Todd Williams <email@hidden>
References: 
 >Proper authentication for a [System] Preference Pane (From: Murray Todd Williams <email@hidden>)

  • Prev by Date: Proper authentication for a [System] Preference Pane
  • Next by Date: Re: Proper authentication for a [System] Preference Pane
  • Previous by thread: Proper authentication for a [System] Preference Pane
  • Next by thread: Re: Proper authentication for a [System] Preference Pane
  • Index(es):
    • Date
    • Thread