You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/04/16 23:28:38 UTC

ios commit: Improved the deprecation of appViewController in CDVPlugin.h

Updated Branches:
  refs/heads/1.6.1 87f2f856b -> 7e7db1a95


Improved the deprecation of appViewController in CDVPlugin.h


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/7e7db1a9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/7e7db1a9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/7e7db1a9

Branch: refs/heads/1.6.1
Commit: 7e7db1a95c36982bc5e5be697295dcd718ec8ac4
Parents: 87f2f85
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Apr 16 14:28:29 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Apr 16 14:28:29 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVPlugin.h |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/7e7db1a9/CordovaLib/Classes/CDVPlugin.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVPlugin.h b/CordovaLib/Classes/CDVPlugin.h
index 662d4e9..b2b03cf 100644
--- a/CordovaLib/Classes/CDVPlugin.h
+++ b/CordovaLib/Classes/CDVPlugin.h
@@ -53,7 +53,12 @@ callerFileName:__FILE__ callerFunctionName:__PRETTY_FUNCTION__]) { return; }
  */
 
 - (id) appDelegate;
-- (UIViewController*) appViewController __attribute__((deprecated)); /* just use the .viewController property in the future */
+- (UIViewController*) appViewController 
+#ifdef __clang__
+__attribute__ ((deprecated("Use the viewController property instead.")));
+#else
+__attribute__ ((deprecated()));
+#endif
 
 - (NSString*) writeJavascript:(NSString*)javascript;
 - (NSString*) success:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;