#import #import #import #import #import #import #import "HelloApplication.h" @implementation HelloApplication - (void) applicationDidFinishLaunching: (id) unused { UIWindow *window; LKLayer *layer; window = [[UIWindow alloc] initWithContentRect: [UIHardware fullScreenApplicationContentRect]]; NSLog(@"Hey there!!!\n"); UIPushButton *pb = [[UIPushButton alloc] initWithTitle: @"Push me"]; [window setContentView: pb]; /* NSLog(@"key output is %d\n", [[UIWindow keyWindow] output]); NSLog(@"my output is %d\n", [window output]); */ [window orderFront: self]; [window makeKey: self]; [window _setHidden: NO]; /* [window setBecomeKeyOnOrderFront: YES]; [window orderFront: self]; [window orderOut: self]; [window makeKey: self]; [self reportAppLaunchFinished]; */ } @end