All pastes #636815 Raw Edit

Stuff

public text v1 · immutable
#636815 ·published 2007-07-28 07:28 UTC
rendered paste body
#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UIPushButton.h>
#import <UIKit/UIWindow.h>
#import <UIKit/UIHardware.h>
#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