• 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: "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


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

  • Prev by Date: Re: Releasing window controllers - at wits end
  • Next by Date: Re: Exposing a 'foreign' database through NSArrayController?
  • Previous by thread: Re: Exposing a 'foreign' database through NSArrayController?
  • Next by thread: Re: Exposing a 'foreign' database through NSArrayController?
  • Index(es):
    • Date
    • Thread