From 210ef4c12e14a97c4097f205cf8cc4c8b73ee97b Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 12 Jul 2011 20:18:35 +0300 Subject: Add a property for the UIWindow and show it --- sal/inc/sal/main.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 { } +@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 -- cgit v1.2.3