NSWindowController & NSDocument
NSWindowController & NSDocument
- Subject: NSWindowController & NSDocument
- From: Tae-Won Ha <email@hidden>
- Date: Wed, 19 Sep 2001 23:47:50 +0200
Hi... I've got a question regarding NSWindowController & NSDocument.
How can I do this:
The document has 2 windows. When you open the doc, just one window is
opened. If you click a button or something like that in this first
window the first window disappears and the second one is displayed.
I tried this:
@implementation MyFirstWindowController
- (IBAction)someAction:(id)sender
{
MySecondWindowController *controller = init stuff.....;
[[self document] addWindowController:controller];
[controller release];
}
@end
It doesn't work...
Please help me..... (I just started to learn Cocoa & ObjC)
Tae-Won Ha
=)