Document Types
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