Let's say I have created a new Cocoa application and use Document-based application
when I create the project. It will have one window, the one from the NSDocument
subclass. How can I make it so that two (or more) windows belong to each document?
I have created an NSWindowController
subclass with a .xib file, where I have created the interface. How can I show this window? And how does communication between the NSWindowController
subclass and the NSDocument
subclass work?
(I use core data, so it is really an NSPersistentDocument
subclass, but I don't think it matters for this particular question.)