summaryrefslogtreecommitdiff
path: root/ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-08 12:35:41 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-08 12:35:41 -0700
commit8594e17f2b07976c006bca1c5531e56ead9b065a (patch)
tree0a123b99f45ef614193dd591e2e0a5254fb8f875 /ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m
parenta40192a40bdf81b9d2a78ae69e059e41d78604ea (diff)
downloadinfinitytier-8594e17f2b07976c006bca1c5531e56ead9b065a.tar.gz
infinitytier-8594e17f2b07976c006bca1c5531e56ead9b065a.zip
Move mac-ui into src/
Diffstat (limited to 'ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m')
-rwxr-xr-xext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m28
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m b/ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m
new file mode 100755
index 00000000..39b85630
--- /dev/null
+++ b/ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m
@@ -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