Question

I'm working on creating an NSDocument-based app with tabs for documents. I have found that it wasn't really designed for this. Apple designed the architechture to allow multiple windows for a single document but not the other way around. I have it basically working but I have started to run into weird issues. For example, when a window is closed, the window controller is dealloc'd but not the tab bar inside the window.

About the only information I could find on the web is this super-sketchy code in a forum post:

http://www.idevapps.com/forum/showthread.php?t=6330

Any advice?

Was it helpful?

Solution

This might help (Cocoadev.com wiki): DocumentBasedAppWithOneWindowForAllDocuments ... I can't vouch for it personally but it's been around for a few years.

OTHER TIPS

Well, if you're going to dig in and fundamentally alter the hierarchy of how NSDocumentController, NSDocument, and NSWindowController interact, you should probably first implement your app in the conventional manner to get your head around the document architecture.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top