Manually creating new NSDocuments
Manually creating new NSDocuments
- Subject: Manually creating new NSDocuments
- From: Peter Horn <email@hidden>
- Date: Wed, 27 Feb 2002 22:10:00 +0100
Hi!
I have a multi-document app, where I subclassed NSDocument to
CMNotebook via IB. Now I have a button in the document window to
open a new -- somewhat dependent -- document window. I have no idea
how to do this, I thought about something like:
...
CMNotebook newNotebook;
newNotebook = [[CMNotebook alloc] initWithKernel:kernel];
...
where in CMNotebook I have
- (CMNotebook *)initWithKernel:(CMKernel *)kernel {
[super init];
...
return self;
}
But no window shows up. I have the impression that I need an
NSDocumentController, but I don't know how to access to it.
Any ideas? Thanks,
Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.