#import "editor.h"

@implementation EditorApplication

- (void) applicationDidFinishLaunching: (id) unused
{
    /* 画面サイズ取得 */
    struct CGRect screenRect = [UIHardware fullScreenApplicationContentRect];
    screenRect.origin = CGPointZero;

    /* ウィンドウ生成 */
    UIWindow *window;
    window = [[UIWindow alloc] initWithContentRect: screenRect];
    [window orderFront: self];
    [window makeKey: self];
    [window _setHidden: NO];

    /* 表示領域の設定 */
    mainView = [[UIView alloc] initWithFrame: screenRect];

    /* テキスト入力欄 */
    textView = [[UITextView alloc] initWithFrame: screenRect];
    [textView setEditable: YES];
    [textView setTextSize: 14];
    [textView setText: @"Sample text."];

    /* ウィンドウに表示領域を設定 */
    [window setContentView: mainView];

    /* 表示領域にテキスト入力欄を設定 */
    [mainView addSubview: textView];
}
@end