aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AppDelegate.h1
-rw-r--r--src/AppDelegate.m5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/AppDelegate.h b/src/AppDelegate.h
index eb98fd9..a9570b8 100644
--- a/src/AppDelegate.h
+++ b/src/AppDelegate.h
@@ -2,5 +2,6 @@
@interface AppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *_window;
+ NSTextView *_text_view;
}
@end
diff --git a/src/AppDelegate.m b/src/AppDelegate.m
index 18bdc74..4c0ace7 100644
--- a/src/AppDelegate.m
+++ b/src/AppDelegate.m
@@ -6,6 +6,7 @@
- (void)dealloc
{
[_window release];
+ [_text_view release];
[super dealloc];
}
@@ -26,6 +27,10 @@
defer:NO];
[_window setTitle:@"Application"];
+
+ _text_view = [[NSTextView alloc]
+ initWithFrame:NSMakeRect(0, 0, 400, 400)];
+ [[_window contentView] addSubview:_text_view];
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification