NSDocumentController subclass
NSDocumentController subclass
- Subject: NSDocumentController subclass
- From: Tom Gray <email@hidden>
- Date: Fri, 19 Sep 2003 12:26:49 -0400
Hello,
I _almost_ have it. If you will recall my application, a VT-100
Terminal has a document which displays its data through a
windowController. The Terminal window has a textView for the Terminal
screen and a textView for the "session log". I also have a second
document which displays prevous "session logs" in a standard editor
window.
I have been trying to force my application to open "sessions saved from
the Terminal" (which are a different document subclass) in the editor.
I have found that I am going to have to subclass NSDocumentController
to do this.
I _almost_ have it working. I have found that if the Terminal document
subclass is NOT in existence when I "open" a previously saved session
log (which was a Terminal document) then my NSDocumentController
subclass correctly instantiates a new editor document subclass. That is
what I want.
If the Terminal is open (that is an instance of the Terminal document
subclass exists) then when I "open" a previously saved session log them
my NSDocumentController subclass tries and instantiate a Terminal
document subclass. Which is NOT what I want.
Ideas anyone?
Tom Gray
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.