This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/mac-ui-macgap1-wrapper/src/MacGap/Classes/Commands/Command.m
2015-05-08 12:35:41 -07:00

29 lines
528 B
Objective-C
Executable File

//
// 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