FROM : Chris Hanson
DATE : Fri Jun 30 22:35:00 2006
On Jun 30, 2006, at 12:40 PM, Dimitri Bouniol wrote:
> I am under the impression (I might and probably am wrong) that each
> NSDocument has to have its own Window.
I don't believe this is required; it's just how the template comes
set up by default. I would probably try to use the NSDocument
architecture even if I were implementing a tabbed interface, rather
than roll my own document architecture. That way I'd still be able
to leverage all of the things the document architecture gives me for
free.
For example, I might try to create a subclass of NSWindowController
that handles all of the tabbed-document interaction, have my
documents interact with that, and have my document class override -
makeWindowControllers: to instantiate the proper window controller
instance and wire it into the tab-handling machinery.
-- Chris
DATE : Fri Jun 30 22:35:00 2006
On Jun 30, 2006, at 12:40 PM, Dimitri Bouniol wrote:
> I am under the impression (I might and probably am wrong) that each
> NSDocument has to have its own Window.
I don't believe this is required; it's just how the template comes
set up by default. I would probably try to use the NSDocument
architecture even if I were implementing a tabbed interface, rather
than roll my own document architecture. That way I'd still be able
to leverage all of the things the document architecture gives me for
free.
For example, I might try to create a subclass of NSWindowController
that handles all of the tabbed-document interaction, have my
documents interact with that, and have my document class override -
makeWindowControllers: to instantiate the proper window controller
instance and wire it into the tab-handling machinery.
-- Chris
| Related mails | Author | Date |
|---|---|---|
| Dimitri Bouniol | Jun 30, 02:48 | |
| Francis Derive | Jun 30, 07:38 | |
| Dimitri Bouniol | Jun 30, 09:54 | |
| I. Savant | Jun 30, 15:40 | |
| Dimitri Bouniol | Jun 30, 21:40 | |
| Chris Hanson | Jun 30, 22:35 | |
| Dimitri Bouniol | Jun 30, 22:42 |






Cocoa mail archive

