-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
PhoneGapCommand.m
48 lines (40 loc) · 898 Bytes
/
PhoneGapCommand.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// PhoneGapCommand.m
// PhoneGap
//
// Created by Michael Nachbaur on 13/04/09.
// Copyright 2009 Decaf Ninja Software. All rights reserved.
//
#import "PhoneGapCommand.h"
@implementation PhoneGapCommand
@synthesize webView;
@synthesize settings;
-(PhoneGapCommand*) initWithWebView:(UIWebView*)theWebView settings:(NSDictionary*)classSettings
{
self = [self initWithWebView:theWebView];
if (self)
[self setSettings:classSettings];
return self;
}
-(PhoneGapCommand*) initWithWebView:(UIWebView*)theWebView
{
self = [super init];
if (self)
[self setWebView:theWebView];
return self;
}
-(void) setWebView:(UIWebView*) theWebView
{
webView = theWebView;
}
-(void) setSettings:(NSDictionary*) classSettings
{
settings = classSettings;
}
- (void)dealloc
{
if (self.settings)
[self.settings release];
[super dealloc];
}
@end