• 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
Re: Exposing a 'foreign' database through NSArrayController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exposing a 'foreign' database through NSArrayController?


  • Subject: Re: Exposing a 'foreign' database through NSArrayController?
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 10 Sep 2006 15:56:27 -0700

On Sep 10, 2006, at 2:12 PM, Stefan Arentz wrote:

I have a large database in a proprietary binary format that I would
like to show in a simple NSTableView. This is all read-only.

Is this is good use case for subclassing NSArrayController?

No. An NSArrayController does not contain a collection of data. It manages the interaction between a collection of data and a view, following the standard model-view-controller architecture.


The best thing to do would be to implement a model-level abstraction to represent your database that supports key-value coding appropriately, and then just use the standard Cocoa controller classes to interact with it.

  -- 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


References: 
 >Exposing a 'foreign' database through NSArrayController? (From: "Stefan Arentz" <email@hidden>)

  • Prev by Date: Re: Exposing a 'foreign' database through NSArrayController?
  • Next by Date: Disabling category method at runtime
  • Previous by thread: Re: Exposing a 'foreign' database through NSArrayController?
  • Next by thread: Disabling category method at runtime
  • Index(es):
    • Date
    • Thread