• 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 per window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple documents per window


  • Subject: Re: Multiple documents per window
  • From: Mike Ferris <email@hidden>
  • Date: Wed, 30 Mar 2005 07:31:22 -0800

You might want to look into MOViewController. (Part of MOKit at http://mokit.sourceforge.net)

NSDocument is not necessarily tied to a window, but it does want an NSWindowController. MOViewController is a subclass of NSWindowController that only controls a subset of a window (a chunk of its view hierarchy).

You need to do a bit of work to make it work with NSDocument, primarily you need to override the NSDocument actions like saveDocument:, printDocument:, etc... All they need to do is forward the messages on to their document, but if you don't override them, the NSWindow catches them and tries to forward them to the document associated with the whole window.

This is very similar to the way Xcode works when you have multiple source files in a split editor in a single window.

Mike Ferris

_______________________________________________
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


References: 
 >Multiple documents per window (From: Mark Alldritt <email@hidden>)

  • Prev by Date: discardTrackingRect called before adding rect
  • Next by Date: Re: NSOpenPanel and new directories?
  • Previous by thread: Multiple documents per window
  • Next by thread: Multiple DO Servers
  • Index(es):
    • Date
    • Thread