• 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
Re: Tiger App Fails: loadDataRepresentation:ofType: ?? ** SOLVED **
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Tiger App Fails: loadDataRepresentation:ofType: ?? (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Icon question
  • Next by Date: Re: NSButton Tool-tip
  • Previous by thread: Tiger App Fails: loadDataRepresentation:ofType: ??
  • Next by thread: _openRecentDocument undocumented?
  • Index(es):
    • Date
    • Thread