Move mac-ui into src/

This commit is contained in:
Adam Ierymenko
2015-05-08 12:35:41 -07:00
parent a40192a40b
commit 8594e17f2b
63 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
//
// Command.m
// MacGap
//
// Created by Joe Hildebrand on 1/10/12.
// Copyright (c) 2012 Twitter. All rights reserved.
//
#import "Command.h"
#import <JavaScriptCore/JSContextRef.h>
@implementation Command
- (id) initWithContext:(JSContextRef)aContext {
self = [super init];
if (!self)
return nil;
context = aContext;
JSGlobalContextRetain((JSGlobalContextRef)context);
return self;
}
- (void)dealloc
{
if (context)
JSGlobalContextRelease((JSGlobalContextRef)context);
}
@end