Re: Multiples NSDocumentController's ?
Re: Multiples NSDocumentController's ?
- Subject: Re: Multiples NSDocumentController's ?
- From: John Nairn <email@hidden>
- Date: Mon, 15 Jul 2002 12:21:46 -0600
Most of what I have learned is from Apple documentation on document
based applications and some experiments. I am writing an application for
scientific calculations which has a text document for commands and
output and a plot document for graphics. Each document type is defined
in a "Document Type" of the application which defines the class to use
for that document.
In my case, the text document creates new plotting documents when needed
by using the shared document controller:
dc=[NSDocumentController sharedDocumentController];
plotDoc=[dc openUntitledDocumentOfType:@"Science Plot"
display:YES];
The two documents can now easily communicate.
On Monday, July 15, 2002, at 08:47 AM, email@hidden
wrote:
From: Nico <email@hidden>
To: email@hidden, email@hidden
Can someone explain me how to have multiples document controllers ina
doc-based app ?
Nico
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
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.