diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-05-08 12:35:41 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-05-08 12:35:41 -0700 |
| commit | 8594e17f2b07976c006bca1c5531e56ead9b065a (patch) | |
| tree | 0a123b99f45ef614193dd591e2e0a5254fb8f875 /ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m | |
| parent | a40192a40bdf81b9d2a78ae69e059e41d78604ea (diff) | |
| download | infinitytier-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-x | ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m | 28 |
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 |
