summaryrefslogtreecommitdiff
path: root/sal
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
commit0d1321e0179846c4c790a3e4453035639cf4538e (patch)
treea73458b82191b1d9f2b649255f82726325629016 /sal
parent71f18c42229b4ce22e57e306f10e889459871a5a (diff)
Add a property for the UIWindow and show it
Diffstat (limited to 'sal')
-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 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 <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