Help button and 'where' field on keychain item SecItemAdd

I'm using SecItemAdd to programmatically add a generic password to the keychain.

I can set the 'comment' field and 'description' field but how do I set the 'where' field (and what would you suggest goes in it?)


When a user is prompted that my application is trying to access the keychain there is a 'help' button (?) but is seems to take no action.

How can I add a help anchor to this alert? I guess it's through the keychain item itself but I couldn't see a relative key for this.

I presume you're talking about the various text fields in the Keychain Access item Get Info window on OS X. In that case I think you'll find that the "Where" field corresponds to the kSecAttrService attribute.


Share and Enjoy

--

Quinn "The Eskimo!"

Apple Developer Relations, Developer Technical Support, Core OS/Hardware

Thank you for the 'where' tip; most helpful! 🙂


Could you also help me with populating the 'help' button popup with some content? The help button (?) shows on the keychain access item get info window but doesn't seem to do anything when pressed. I'd love to populate it with some text to help my users understand what the keychain access item is for and why they should not delete / alter it if they want the application to continue functioning as desired!

Could you also help me with populating the 'help' button popup with some content?

Honestly, I don't know how that works. You should open a DTS tech support incident and we'll see what we can uncover.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1@apple.com"
Help button and 'where' field on keychain item SecItemAdd
 
 
Q