I am building an application in Mac OS X which should bring up the password screen in Mac OS X once when a button on a QT WIndow is clicked. Which API I should use for this? Also, how will my application get notified whether system is locked or not?
Thanks in advance.
我相信您正在寻找Authorization Services API 。
This sounds a lot like an SFAuthorizationPluginView
.
Apple has an API for you to add your own authentication methods. Here is some sample code to get started.
http://developer.apple.com/mac/library/samplecode/NameAndPassword/Introduction/Intro.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.