• 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: multiple documents, single window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple documents, single window


  • Subject: Re: multiple documents, single window
  • From: Shaun Wexler <email@hidden>
  • Date: Fri, 8 Oct 2004 11:33:50 -0700

On Oct 7, 2004, at 11:15 PM, Jacob Lukas wrote:

I am designing a document-based application, and I wish for the user to be able to have more than one document in a single window. I really don't know where to start. Is there a good tutorial on this sort of thing? Thanks for any sort of kick in the right direction

There are several approaches. If you provide more information, replies can be more specific.

1. How will this "composite" window select the documents to display? Are they only from files, or will you allow it to display existing (currently open) documents?

2. Does the composite window allow editing, manipulating the document's views, or just viewing?

3. Is your composite window actually a document itself, that can be saved, or just a type of view?

Each NSDocument could choose its NSWindowController class based on whether it needs to appear in its own window, or the composite window.

If your composite window/document needs to open a document to display, it can open the document without a user interface, and simply use/share the document's data. If for instance you were displaying a thumbnail of each document, you could open the document's UI if double-clicked. You could go so far as to capture the document window's backing store image and keep the composite window's thumbnail in sync. Again, more info is required from you.

I have a complex document-based application, and enjoy Cocoa's document architecture (albeit a bit less now due to the NSWindowController bindings retain-cycle bug!!!)... ;)
--
Shaun Wexler
MacFOH
http://www.macfoh.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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, single window
      • From: Jacob Lukas <email@hidden>
    • Re: multiple documents, single window
      • From: Jacob Lukas <email@hidden>
References: 
 >multiple documents, single window (From: Jacob Lukas <email@hidden>)

  • Prev by Date: Something akin to Apple's TextLinks for NSTextFieldCell
  • Next by Date: Re: multiple documents, single window
  • Previous by thread: Re: multiple documents, single window
  • Next by thread: Re: multiple documents, single window
  • Index(es):
    • Date
    • Thread