Skip to content

Instantly share code, notes, and snippets.


Jack James surrealroad

View GitHub Profile
erikdoe / CCMKeychainHelper.m
Last active Dec 20, 2020
It took me way too long to wade through Keychain documentation and examples, but, finally, I got to a sane implementation of a basic Objective-C interface for managing internet passwords in Keychain. This is from my CCMenu project (
View CCMKeychainHelper.m
#import "CCMKeychainHelper.h"
@implementation CCMKeychainHelper
+ (BOOL)setPassword:(NSString *)password forURLString:(NSString *)aString error:(NSError **)errorPtr
return [self setPassword:password forURL:[NSURL URLWithString:aString] error:errorPtr];
+ (BOOL)setPassword:(NSString *)password forURL:(NSURL *)aURL error:(NSError **)errorPtr
andyvanee /
Created Sep 20, 2012
Embed Python in Objective-C (without PyObjC)
def my_func():
return "embedding?"