简体   繁体   中英

How to keep privilege like Dropbox to inject Finder

I can inject Finder to put a button on toolbar and add a custom context menu. But my app ask me to input password to do this. How to keep privilege like dropbox, only need to input password one time no matter restart app or restart computer?

only need to input password one time

You'll want to look into the Keychain Services API.
They allow you to store user passwords and other authentication information in a secure and standard manner.

It's a plain C API but there are also wrappers for Cocoa out there.

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.

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