• 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: Authorization panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authorization panel


  • Subject: Re: Authorization panel
  • From: email@hidden
  • Date: Thu, 6 Oct 2005 16:08:53 +1000

Is there a way in Cocoa to bring up an Authorization panel, like the
one that appears if a user tries something (say copy a file they
don't have writes to), so a user CAN modify a file if they know the
administrator username and password. I've looked around, and either
there doesn't seem to be an easy solution, or I'm just not asking the
write question yet.


If you're wanting to verify against system users (i.e. those with accounts on the computer, not just arbitrary users specific to your application), you really have no excuse not to use Apple's API's dedicated to this. Indeed, rolling your own is Evilâ„¢ and will cause premature balding. ;)


http://developer.apple.com/referencelibrary/Security/idxAuthorization- date.html

Plenty of example code, as well as the formal documentation and references. What you want in essence is the AuthorizationCopyRights function and friends.

Wade Tregaskis (AIM/iChat, Yahoo, Gizmo & Skype: wadetregaskis, ICQ: 40056898, MSN: email@hidden, AV iChat & email: email@hidden, Jabber: email@hidden & email@hidden)
-- Sed quis custodiet ipsos custodes?



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Authorization panel (From: Chad Armstrong <email@hidden>)
 >Re: Authorization panel (From: Kirt Cathey <email@hidden>)

  • Prev by Date: Re: awakeFromNib not called
  • Next by Date: Re: awakeFromNib not called
  • Previous by thread: Re: Authorization panel
  • Next by thread: Re: Authorization panel
  • Index(es):
    • Date
    • Thread