From 0d1321e0179846c4c790a3e4453035639cf4538e 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(+) (limited to 'sal') diff --git a/sal/inc/sal/main.h b/sal/inc/sal/main.h index db7294376b3b..73bfc7c6b158 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