UTIs and writeToFile:atomically:
UTIs and writeToFile:atomically:
- Subject: UTIs and writeToFile:atomically:
- From: SA Dev <email@hidden>
- Date: Mon, 18 Jul 2005 11:59:07 -0400
List:
I'm finally writing a metadata importer plugin for my app. I'm
running into a bit of trouble, though, with UTIs. At least I *think*
it's UTIs. The "/usr/bin/mdimport -d1" command is returning a dynamic
UTI, claiming no importer for my doc type.
Here's the thing: My app is a project-based app with a project
control file and many supporting files (both file types are my own
format). The project control file is not indexed.
The supporting document files are *not* saved using the standard
save commands, but rather are archived using NSArchiver during a hand-
rolled save method. The document type is declared in my target's
document types with a proper com.me.myapp.mydoctype UTI.
My question is, if I'm using [someDictionary writeToFile:path
atomically:YES] to save the file with the 'mydoctype' extension
associated with the UTI, will the importer pick it up? ... or do I
need to use the proper -save and -open mechanisms built into the
NSDocument architecture?
_______________________________________________
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