Skip to content

Instantly share code, notes, and snippets.

View bewebste's full-sized avatar

Brian Webster bewebste

View GitHub Profile
@bewebste
bewebste / machine.h.motemplate
Created June 4, 2011 19:14
MOGenerator diff template
{
name = <$name$>,
managedObjectClassName = <$managedObjectClassName$>,
renamingIdentifier = <$renamingIdentifier$>,
isAbstract = <$isAbstract$>,
userInfo = <$userInfo$>,
relationships = (
<$foreach Relationship noninheritedRelationships do$>
{
name = <$Relationship.name$>,
Handle printHandle;
OSStatus err = noErr;
NSString* description = nil;
AEDesc descriptor;
err = AEPrintDescToHandle(&descriptor, &printHandle);
if (err == noErr)
{
description = [NSString stringWithCString:(char*)(*printHandle) encoding:NSASCIIStringEncoding];
DisposeHandle(printHandle);