• 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
Document infrastructure in a DB-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Document infrastructure in a DB-based app


  • Subject: Document infrastructure in a DB-based app
  • From: Christian Schneider <email@hidden>
  • Date: Mon, 20 Sep 2004 00:24:02 +0200

Hi list,

we've got an application that handles four different document types. As it has unfortunately grown in quite an unstructured way I'd like to change it to support Cocoa's document infrastructure. However, while reading up on the topic I noticed the strong bias on file based documents - our application writes directly to a database backend.

As I understand it dataRepresentationOfType: and loadDataRepresentation:ofType: would be the primary methods to load and save document data. In our case what would have to be done is pervert these methods to write and read data from the data base.

I'm not sure whether the gained ease of use with respect to window management as well as overall clarity of the code's structure would be counterweighted by hacking around one of the bases of the document infrastructure.

Any thoughts on the topic would be highly appreciated.


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: Document infrastructure in a DB-based app
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: modal window + sheet
  • Next by Date: find name of hard drive that system folder resides on in Cocoa
  • Previous by thread: Re: NSBrowserCell and objects
  • Next by thread: Re: Document infrastructure in a DB-based app
  • Index(es):
    • Date
    • Thread