Skip to content

Instantly share code, notes, and snippets.

Avatar

Jack James surrealroad

View GitHub Profile
@erikdoe
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 (http://ccmenu.org).
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
andyvanee / MyModule.py
Created Sep 20, 2012
Embed Python in Objective-C (without PyObjC)
View MyModule.py
def my_func():
return "embedding?"