• 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: Document Types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Document Types (From: Seth Willits <email@hidden>)
 >Re: Document Types (From: John Warner <email@hidden>)

  • Prev by Date: Re: CoreData apps & applicationShouldTerminate
  • Next by Date: NSData hexadecimal to 16 bit integer?
  • Previous by thread: Re: Document Types
  • Next by thread: trouble with managedobjectcontext
  • Index(es):
    • Date
    • Thread