Re: Authorization panel
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