Updated Branches:
  refs/heads/master 797c9a050 -> 7f2e01604

[CB-853] Deprecate window.invokeString - use window.handleOpenURL(url) instead


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/7f2e0160
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/7f2e0160
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/7f2e0160

Branch: refs/heads/master
Commit: 7f2e01604dabcbbb2fde0ccaf2720e29ba20d838
Parents: 797c9a0
Author: Shazron Abdullah <[email protected]>
Authored: Mon Jul 16 13:54:18 2012 -0700
Committer: Shazron Abdullah <[email protected]>
Committed: Mon Jul 16 13:54:18 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.h             |    2 +-
 .../__TESTING__/Classes/MainViewController.m       |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/7f2e0160/CordovaLib/Classes/CDVViewController.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.h 
b/CordovaLib/Classes/CDVViewController.h
index 3c19358..a333a56 100644
--- a/CordovaLib/Classes/CDVViewController.h
+++ b/CordovaLib/Classes/CDVViewController.h
@@ -37,7 +37,7 @@
 @property (nonatomic, readonly, retain) CDVWhitelist* whitelist; // readonly 
for public
 @property (nonatomic, readonly, retain) NSArray* supportedOrientations;
 @property (nonatomic, readonly, assign) BOOL loadFromString;
-@property (nonatomic, readwrite, copy) NSString* invokeString;
+@property (nonatomic, readwrite, copy) NSString* invokeString __attribute__ 
((deprecated));
 
 @property (nonatomic, readwrite, assign) BOOL useSplashScreen;
 @property (nonatomic, readonly, retain) IBOutlet UIActivityIndicatorView* 
activityView;

http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/7f2e0160/bin/templates/project/__TESTING__/Classes/MainViewController.m
----------------------------------------------------------------------
diff --git a/bin/templates/project/__TESTING__/Classes/MainViewController.m 
b/bin/templates/project/__TESTING__/Classes/MainViewController.m
index 7cd4839..b4c8e00 100644
--- a/bin/templates/project/__TESTING__/Classes/MainViewController.m
+++ b/bin/templates/project/__TESTING__/Classes/MainViewController.m
@@ -108,6 +108,7 @@
      if (self.invokeString)
      {
         // this is passed before the deviceready event is fired, so you can 
access it in js when you receive deviceready
+               NSLog(@"DEPRECATED: window.invokeString - use the 
window.handleOpenURL(url) function instead, which is always called when the app 
is launched through a custom scheme url.");
         NSString* jsString = [NSString stringWithFormat:@"var invokeString = 
\"%@\";", self.invokeString];
         [theWebView stringByEvaluatingJavaScriptFromString:jsString];
      }

Reply via email to