multi-document-type NSDocument-based app
multi-document-type NSDocument-based app
- Subject: multi-document-type NSDocument-based app
- From: email@hidden
- Date: Sun, 18 Feb 2007 10:59:08 +0100 (CET)
- Importance: Normal
Hello all,
I've got a working Cocoa-made text editor and I should like to extend its
scope by
making it able to open RTF or .txt files. To that end, I added new
document type specifications
in the Info.plist file (copying it from the source code for TextEdit).
According to the documentation,
NSDocumentController determines the list of "openable" files from the data
in Info.plist. But if I launch the
"Open" panel, it still tells me that the only openable files are the
native files created by my app. What am
I missing ?
I'd also be interested in any examples of source projects that combine
NSDocument and open/save ability
with multiple document types (The nearest examples I know are "TextEdit"
which doesn't use NSDocument, and "Sketch" which implements open/save only
for one type of document).
Thanks in advance,
Ewan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden