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

Document Types


  • Subject: Document Types
  • From: Seth Willits <email@hidden>
  • Date: Thu, 26 May 2005 23:14:04 -0700

A utility I'm writing at the moment has its own document type that manages a bunch of files (so naturally I have a document class and type in the plist for that) but I'd really like for any file to be dragged on to the application and have it create a new document and then add the drag files to the list of files that document manages. The last part is very easy and even have it working, but there's a slight hitch.

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.

So I'm looking for the right way to go about this. I searched the archives (and 4 out of 5 search strings I used had no results) and googled it as well. Rather hard to find.

Thanks,


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


  • Follow-Ups:
    • Re: Document Types
      • From: John Warner <email@hidden>
  • Prev by Date: Listing only unique attributes in a set of Core Data Objects
  • Next by Date: Re: Listing only unique attributes in a set of Core Data Objects
  • Previous by thread: Re: Listing only unique attributes in a set of Core Data Objects
  • Next by thread: Re: Document Types
  • Index(es):
    • Date
    • Thread