如何启动 Mac OS X 密码屏幕
我正在 Mac OS X 中构建一个应用程序,当单击 QT WIndow 上的按钮时,该应用程序应该在 Mac OS X 中显示密码屏幕。我应该使用哪个 API?另外,无论系统是否锁定,我的应用程序将如何收到通知?
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这听起来很像
SFAuthorizationPluginView
。Apple 有一个 API 供您添加自己的身份验证方法。这是一些入门示例代码。
http://developer.apple.com/mac/library/示例代码/NameAndPassword/Introduction/Intro.html
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
我相信您正在寻找 授权服务 API 。
I believe you are looking for the Authorization Services API.