Permalink
Browse files

prep for PhoneGap 1.0

prep for PhoneGap 1.0
  • Loading branch information...
1 parent e639d62 commit 43a7f5ad89a104bbd8d7d769467ae90ec2be4fcc @RandyMcMillan RandyMcMillan committed Jun 29, 2011
@@ -7,13 +7,17 @@
//
#import <Foundation/Foundation.h>
-///For xCode 4 Template only
-#import <PhoneGap/PhoneGapCommand.h>
+#ifdef PHONEGAP_FRAMEWORK
+#import <PhoneGap/PGPlugin.h>
+#else
+#import "PGPlugin.h"
+#endif
+
#import "ChildBrowserViewController.h"
-@interface ChildBrowserCommand : PhoneGapCommand<ChildBrowserDelegate> {
+@interface ChildBrowserCommand : PGPlugin<ChildBrowserDelegate> {
ChildBrowserViewController* childBrowser;
}
@@ -8,7 +8,11 @@
#import "ChildBrowserCommand.h"
+#ifdef PHONEGAP_FRAMEWORK
+#import <PhoneGap/PhoneGapViewController.h>
+#else
#import "PhoneGapViewController.h"
+#endif
@implementation ChildBrowserCommand
@@ -68,7 +68,7 @@ - (void)dealloc {
webView.delegate = nil;
- [webView release];
+ /* [webView release];
[closeBtn release];
[refreshBtn release];
[addressLabel release];
@@ -77,6 +77,8 @@ - (void)dealloc {
[safariBtn release];
[spinner release];
[ supportedOrientations release];
+ */
+
[super dealloc];
}
@@ -147,7 +149,7 @@ - (void)loadURL:(NSString*)url
[url hasSuffix:@".bmp" ] ||
[url hasSuffix:@".gif" ] )
{
- [ imageURL release ];
+ //[ imageURL release ];
imageURL = [url copy];
isImage = YES;
NSString* htmlText = @"<html><body style='background-color:#333;margin:0px;padding:0px;'><img style='min-height:200px;margin:0px;padding:0px;width:100%;height:auto;' alt='' src='IMGSRC'/></body></html>";

0 comments on commit 43a7f5a

Please sign in to comment.