Re: Tiger App Fails: loadDataRepresentation:ofType: ?? ** SOLVED **
Re: Tiger App Fails: loadDataRepresentation:ofType: ?? ** SOLVED **
- Subject: Re: Tiger App Fails: loadDataRepresentation:ofType: ?? ** SOLVED **
- From: Seth Willits <email@hidden>
- Date: Tue, 26 Jul 2005 19:51:49 -0700
On Jul 25, 2005, at 12:39 PM, Seth Willits wrote:
I have a document class which has implemented:
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)
outError;
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName
error:(NSError **)outError;
Which are the two new methods in NSDocument for Tiger which replace
the data representation methods. However, whenever I try to open a
document, my app complains:
"loadDataRepresentation:ofType: is a subclass responsibility but
has not been overridden."
Verdict:
My NSDocumentController subclass was overriding
openDocumentWithContentsOfFile:display: and by doing so, it was using
the old loadDataRepresentation method.
So in short: if you're going to ditch the old deprecated methods,
make sure you ditch them *all*.
--
Seth Willits
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden