summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-07-12 20:18:35 +0300
committerTor Lillqvist <tml@iki.fi>2011-07-15 00:26:37 +0300
commit210ef4c12e14a97c4097f205cf8cc4c8b73ee97b (patch)
tree65293a83d9f58af34d0beefedb932c3369d9d218
parent916a0a7d19d59b2a093ed3e103474013580f385c (diff)
Add a property for the UIWindow and show it
-rw-r--r--sal/inc/sal/main.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sal/inc/sal/main.h b/sal/inc/sal/main.h
index fdd99ac32..3ddfe0f38 100644
--- a/sal/inc/sal/main.h
+++ b/sal/inc/sal/main.h
@@ -76,19 +76,26 @@ sal_main_with_args(int argc, char ** argv) \
@interface salAppDelegate : NSObject <UIApplicationDelegate> {
}
+@property (nonatomic, retain) UIWindow *window;
@end
static int sal_main_with_args(int argc, char **argv);
@implementation salAppDelegate
+@synthesize window=_window;
+
- (BOOL)application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions
{
UIWindow *uiw = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
uiw.backgroundColor = [UIColor redColor];
+ self.window = uiw;
[uiw release];
sal_main_with_args(sal_argc, sal_argv);
+
+ [self.window makeKeyAndVisible];
+ return YES;
}
@end