• 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
UTIs and writeToFile:atomically:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: UTIs and writeToFile:atomically:
      • From: SA Dev <email@hidden>
  • Prev by Date: Re: autorelease use...
  • Next by Date: Re: checking for clipping by other windows
  • Previous by thread: Re: checking for clipping by other windows
  • Next by thread: Re: UTIs and writeToFile:atomically:
  • Index(es):
    • Date
    • Thread