• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDocumentController subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Subclassing NSDocumentController
  • Next by Date: .doc to .rtf ?
  • Previous by thread: Re: Subclassing NSDocumentController
  • Next by thread: .doc to .rtf ?
  • Index(es):
    • Date
    • Thread