Newbie Document Type Problem
Newbie Document Type Problem
- Subject: Newbie Document Type Problem
- From: Tom Gray <email@hidden>
- Date: Thu, 18 Sep 2003 22:00:52 -0400
Hello,
Thanks to everyone for all the help this week. I have another problem.
I have two different types of documents that need to save the same type
of file, one is the "current" document the other is a "old". Whenever a
saved file is opened I always want it to open in the "old" document
class. (It is an old style VT-100 Terminal with a "current" Session Log
and the other document displays previous Terminal Sessions.)
My problem is that I want both documents to save identical files. I
want those files to always open the "old" NSDocument subclass. How do I
do that? How do I make a NSDocument subclass "save" ( - (NSData
*)dataRepresentationOfType:(NSString *)aType) using a "different"
documents class?
Currently when I save "Current" Session Logs and then try and reopen
them the application is creating an instance of the VT-100 Terminal
NSDocument subclass rather the simple text editor NSDocument subclass
that displays previous saved documents.
How do I make NSDocument subclass A save documents as if they were
from NSDocument subclass B?
Tom
_______________________________________________
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.