• 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: Bindings or datasource for a large NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings or datasource for a large NSTableView


  • Subject: Re: Bindings or datasource for a large NSTableView
  • From: Dado Colussi <email@hidden>
  • Date: Thu, 26 Jan 2006 17:07:40 +0200

Greg Herlihy wrote:
I would definitely favor bindings over a data source delegate for
efficiency. An NSArrayController does populate the table in a "lazy" manner.
For example, if often defers data requests until a group of objects are
about to be scrolled into view..

Of course having the NSArrayControler sort the records would require
accessing all of them. So the strategy in this case would be to subclass
NSArrayController and implement its

    - (NSArray*)arrangeObjects:(NSArray*)objects

method to have the database sort its records based on the
NSArrayController's current sort descriptors.

Greg


Hi Greg,

I don't see how this solves my problem. How does NSArrayController (or its subclass) know what part of the arrangedObjects an NSTableView is accessing in order to retrieve records from the database and manipulate the arrangedObjects on demand? I must be missing something obvious here.

Dado
_______________________________________________
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: Bindings or datasource for a large NSTableView
      • From: Camillo Lugaresi <email@hidden>
References: 
 >Re: Bindings or datasource for a large NSTableView (From: Greg Herlihy <email@hidden>)

  • Prev by Date: Re: Bindings or datasource for a large NSTableView
  • Next by Date: [COREDATA] fetchRequest performance problem, any advice ?
  • Previous by thread: Re: Bindings or datasource for a large NSTableView
  • Next by thread: Re: Bindings or datasource for a large NSTableView
  • Index(es):
    • Date
    • Thread