Re: Exposing a 'foreign' database through NSArrayController?
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