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/01/18 22:54:53 UTC
git commit: Fixed the (PGPlugin.viewController == null) problem for
pre-1.4 projects using PhoneGap > 1.3
Updated Branches:
refs/heads/master f03d6a2d6 -> c4b4c57e0
Fixed the (PGPlugin.viewController == null) problem for pre-1.4 projects using PhoneGap > 1.3
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/c4b4c57e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/c4b4c57e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/c4b4c57e
Branch: refs/heads/master
Commit: c4b4c57e049e537cd271e95e2f506dd6743b6652
Parents: f03d6a2
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Jan 18 13:54:41 2012 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Jan 18 13:54:41 2012 -0800
----------------------------------------------------------------------
PhoneGapLib/Classes/PhoneGapDelegate.m | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/c4b4c57e/PhoneGapLib/Classes/PhoneGapDelegate.m
----------------------------------------------------------------------
diff --git a/PhoneGapLib/Classes/PhoneGapDelegate.m b/PhoneGapLib/Classes/PhoneGapDelegate.m
index b83db91..cdb4925 100755
--- a/PhoneGapLib/Classes/PhoneGapDelegate.m
+++ b/PhoneGapLib/Classes/PhoneGapDelegate.m
@@ -209,6 +209,10 @@ static NSString *gapVersion;
obj = [[NSClassFromString(className) alloc] initWithWebView:webView];
}
+ if ([obj isKindOfClass:[PGPlugin class]] && [obj respondsToSelector:@selector(setViewController:)]) {
+ [obj setViewController:self.viewController];
+ }
+
if (obj != nil) {
[self.pluginObjects setObject:obj forKey:className];
[obj release];