[dasher] iPhone tidies to viewcontrollers
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher] iPhone tidies to viewcontrollers
- Date: Wed, 9 Jun 2010 12:50:26 +0000 (UTC)
commit 92b69ceee95c2f289d04a5c620be7fd7bd6d9a69
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date: Wed Jun 2 14:48:55 2010 +0100
iPhone tidies to viewcontrollers
GC some fields and avoid unnecessary NavigationControllers.
Src/iPhone/Classes/InputMethodSelector.mm | 4 ++--
Src/iPhone/Classes/ParametersController.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/Src/iPhone/Classes/InputMethodSelector.mm b/Src/iPhone/Classes/InputMethodSelector.mm
index 403cd09..7474fc3 100644
--- a/Src/iPhone/Classes/InputMethodSelector.mm
+++ b/Src/iPhone/Classes/InputMethodSelector.mm
@@ -170,7 +170,7 @@ SSectionDesc allMeths[] = {
}
- (void)moduleSettingsDone {
- [self dismissModalViewControllerAnimated:YES];
+ [self.navigationController popViewControllerAnimated:YES];
[self doSelect];
}
@@ -186,7 +186,7 @@ SSectionDesc allMeths[] = {
if (mod->GetSettings(&settings, &count)) {
ParametersController *params = [[[ParametersController alloc] initWithTitle:NSStringFromStdString(desc->filterName) Settings:settings Count:count] autorelease];
[params setTarget:self Selector:@selector(moduleSettingsDone)];
- [self presentModalViewController:[[[UINavigationController alloc] initWithRootViewController:params] autorelease] animated:YES];
+ [self.navigationController pushViewController:params animated:YES];
}
}
diff --git a/Src/iPhone/Classes/ParametersController.h b/Src/iPhone/Classes/ParametersController.h
index c8921a0..1fb7a18 100644
--- a/Src/iPhone/Classes/ParametersController.h
+++ b/Src/iPhone/Classes/ParametersController.h
@@ -12,8 +12,6 @@
@interface ParametersController : UIViewController {
SModuleSettings *settings;
int count;
- id targetOnDone;
- SEL selector;
}
-(id)initWithTitle:(NSString *)title Settings:(SModuleSettings *)settings Count:(int)count;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]