Re: Exposing a 'foreign' database through NSArrayController?
Re: Exposing a 'foreign' database through NSArrayController?
- Subject: Re: Exposing a 'foreign' database through NSArrayController?
- From: "Michael Ash" <email@hidden>
- Date: Sun, 10 Sep 2006 19:18:19 -0400
On 9/10/06, Stefan Arentz <email@hidden> 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?
How would that work? Should I simply let arrangedObjects return my own
NSArray implementation that knows how to retrieve data from the
proprietary database and wrap it in a Objective-C class? I have
potentially hunderds of thousands of rows in this database so I would
prefer to implement some kind of lazy loading mechanism in my 'fake'
NSArray implementation.
Is this the right way to do it?
Maybe I'm just being old-fashioned, but why not ditch the bindings and
implement a data source? There's only two methods to implement and the
whole thing is built around lazy retrieval. It seems to me that you're
asking how to use bindings to implement, through a painful and
convoluted process, nothing more th
an a lazy-loading data source.
Mike
_______________________________________________
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