• 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
multiple documents in an app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple documents in an app


  • Subject: multiple documents in an app
  • From: Boyd Collier <email@hidden>
  • Date: Thu, 3 Nov 2005 12:03:57 -0800

I'm attempting to create a simple but user-friendly app to do some heavy-duty number crunching at the same time as learning my way around Cocoa. Thus far, I've created an document-based app that opens and displays the contents of a text file containing data to be analyzed and have succeeded in extracting all the info I need to carry out the analysis. The document is displayed in a window with a single button, which, when pressed, takes me into a controller via an IBAction, which is where the heavy-lifting gets done. When this is completed, I want to display the results in a separate window that shows only output from the analysis and doesn't have any buttons, etc. but which can be saved in the usual manner.

I presume that what I have to do is create another nib file with a window of the sort that I want for showing the output, and I know how to do this. But what I'm not clear on is how to add this to the array of documents maintained by NSDocumentController. Do I put a controller of some sort into this new nib? If so, should it be a subclass of NSDocument or of NSWindow or of NSObject?

This is, I'm sure, a simple question, but although I've read Hillegass's Cocoa book and a lot of Apple's documentation, I'm unsure how to proceed.

Thanks in advance,
Boyd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: multiple documents in an app
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: DO and threads
  • Next by Date: Re: multiple documents in an app
  • Previous by thread: Re: DO and threads
  • Next by thread: Re: multiple documents in an app
  • Index(es):
    • Date
    • Thread