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?