简体   繁体   English

如何启动Mac OS X密码屏幕

[英]How to start Mac OS X password screen

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. 我正在Mac OS X中构建一个应用程序,当单击QT WIndow上的按钮时,应该在Mac OS X中打开一次密码屏幕。 Which API I should use for this? 我应该为此使用哪个API? 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 . 这听起来很像SFAuthorizationPluginView

Apple has an API for you to add your own authentication methods. Apple提供了一个API,供您添加自己的身份验证方法。 Here is some sample code to get started. 这是一些入门示例代码。

http://developer.apple.com/mac/library/samplecode/NameAndPassword/Introduction/Intro.html http://developer.apple.com/mac/library/samplecode/NameAndPassword/Introduction/Intro.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM