How do I actually use Authorization Services?

Posted by abrahamvegh on Stack Overflow See other posts from Stack Overflow or by abrahamvegh
Published on 2010-03-16T04:51:09Z Indexed on 2010/03/16 5:26 UTC
Read the original article Hit count: 378

Filed under:
|
|
|

I've been searching and experimenting for nearly four hours now, so I'm gonna just ask straight up:

How can I correctly use the Authorization Services API to show the user a system-level authorization window, the same one you see when you click a lock icon in System Preferences?

From what I can tell, there is no way to do it using Cocoa if you want to do it programmatically, and if your goal is to call an executable that normally needs to be called via sudo (in my case, /usr/bin/pmset) you're up a creek without a paddle.

I challenge you, I implore you: Please, enlighten me.

Thank you. :)

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about objective-c