5 ms·
Point 6 is a rather uninformed opinion. The reason the Keychain and Sandbox API are written in C is because they are designed to be used straight up by C progra
by wyuenho 14y ago
Point 6 is a rather uninformed opinion. The reason the Keychain and Sandbox API are written in C is because they are designed to be used straight up by C programs without calling in obscure Obj-C land. Have you ever wondered why Mercurial and Subversion are able to put your credentials in Keychain? This is why. Lower-level, general purpose Mac OS APIs have always been written in C, and they should.
- mikeash 14y agoHe calls out CoreFoundation as an example of doing it right, though. I don't think he means that the problem is C APIs in general, but bad ones.
- Aqua_Geek 14y agoI agree with you, but there really should be a nice, easy-to-use wrapper written in Obj-C as well.
- sarah2079 14y agohttp://developer.apple.com/library/ios/#samplecode/GenericKeychain/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007797-Intro-DontLinkElementID_2 http://developer.apple.com/library/ios/#samplecode/GenericKe...
- chrisballinger 14y agoI switched to SSKeychain (https://github.com/soffes/sskeychain https://github.com/soffes/sskeychain) after using SFHFKeychainUtils for a while because I think it's cleaner and more regularly updated.
- Aqua_Geek 14y agoSame here. SSKeychain is pretty well done, but it only has support for passwords/accounts.