where to place document file extensions frameworks vs. main target
where to place document file extensions frameworks vs. main target
- Subject: where to place document file extensions frameworks vs. main target
- From: Christian Schneider <email@hidden>
- Date: Fri, 4 Mar 2005 12:08:11 +0100
Hi all,
I have implemented a document subtype in a framework .
Now, I am trying to call -openDocumentWithContentsOfFile:display: on
the shared document controller but -initWithContentsOfFile:ofType:
doesn't get called. The extension-to-document class-mapping is defined
both in my main target and in the target for the framework. What else
could go wrong here?
The file I specify does exist but that leads to my second question:
does it have to? My application does not normally deal with files but
loads its data from a database and I'd like to use the file loading
mechanism of the document infrastructure to instantiate documents from
the data base as well as from the file system where the filename in
the former case would be something like database_id.extension. Will
that work or would I have to subclass NSDocumentController to
implement a special open method?
Best regards
chris
_______________________________________________
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