• 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
Import/Export items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Import/Export items


  • Subject: Import/Export items
  • From: Scott Ellsworth <email@hidden>
  • Date: Fri, 25 Mar 2005 15:16:34 -0800

Hi, all.

I have a document based application that now needs to import/export some new file types. Since these files do not contain all of the data of the document, I want them to be import/export filetypes

In a former life, I had these implemented via loadDataRepresentationOfType and dataRepresentationOfType. These were listed in the info.plist, and all was well. In lDROT, I grabbed the whole file as an NSString, then parsed in windowControllerDidLoadNib.

I switched to a new storage architecture, where it was no longer appropriate to use lDROT and dROT. (Core Data, as it turns out, but the details are not germane.)

Since the older file formats are less expressive than what is currently being generated, adding them back to lDROT, etc., does not make sense.

Does anyone have some sample code on how best to get a file panel up and an NSString from the resulting path? I suspect I can handle creating the menu item, hooking it up to an IBAction, etc.

(URLs are fine, references to CocoaDevCentral, whatever.)


Scott _______________________________________________ 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
  • Prev by Date: Re: deployment style
  • Next by Date: Re: self willChangeValueForKey: @"all keys"???
  • Previous by thread: Re: Apple's Code Level Support
  • Next by thread: Re: Import/Export items
  • Index(es):
    • Date
    • Thread