• 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
where to place document file extensions frameworks vs. main target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: where to place document file extensions frameworks vs. main target
      • From: Christian Schneider <email@hidden>
    • Re: where to place document file extensions frameworks vs. main target
      • From: Christian Schneider <email@hidden>
  • Prev by Date: Re: Help in using the gcc -finstrument-functions option for tracing programs execution
  • Next by Date: help loading file
  • Previous by thread: Curious debugging behavior
  • Next by thread: Re: where to place document file extensions frameworks vs. main target
  • Index(es):
    • Date
    • Thread