Re: Document Types
Re: Document Types
- Subject: Re: Document Types
- From: Seth Willits <email@hidden>
- Date: Fri, 27 May 2005 23:21:47 -0700
On May 27, 2005, at 5:24 AM, John Warner wrote:
The way I got the application to accept any file drop was to add
another document type to the plist, which simply had "*" for the
extension and "****" for the OS type. That works, except when I
use NSDocumentController to open a specified file (which is a
supporting RTF document and not my main document), it opens with
that "fake" document instead of the rtf class I have.
I believe you can just move the RTF type ahead of the generic type
in the plist. (Or is it already?) The first match for a file is the
one that will be used.
Hmmm... Tried that and I still get the same error I was getting
before. What happens is I get an error at runtime saying:
"loadDataRepresentation:ofType: is a subclass responsibility but has
not been overridden."
The "catch-all" document type is dead last in the list.
Seth Willits
----------------------------------------------------------
Freak Software - http://www.freaksw.com/
ResExcellence - http://www.resexcellence.com/realbasic/
----------------------------------------------------------
_______________________________________________
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