• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiples NSDocumentController's ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Intercepting Some Keyboard Events for NSTextView
  • Next by Date: Re: Delegate: to retain or not?
  • Previous by thread: Multiples NSDocumentController's ?
  • Next by thread: Indexing Kit?
  • Index(es):
    • Date
    • Thread