assuming I understand (that you want the tableview, but you also want text 
fields that have these summaries separate)...

you could certainly use separate methods with NSPredicates that examine the 
original data model to return those numbers. If you’re table is filtered you 
could incorporate that predicate as well.

Bindings isn’t an exclusive technology. you can use it with normal programming 
techniques (in fact, you can do that within the same table., simply don’t bind 
a column, and then implement the datasource method only for that column - not 
relevant, but still)


On Mar 15, 2011, at 4:55 PM, Darren Wheatley wrote:

> Hi,
> 
> I have an NSTableView bound to an NSArrayController.
> 
> I would like to have a dashboard onscreen that shows counts of the data
> based on field values in the entity, e.g.:
> 
> all records
> records with active = Y
> records with updated = Y
> records with updated = N
> 
> Is it possible to bind these values individually to the same
> NSArrayController? FYI, I have a set of filters on fields on the
> NSTableView that filter out some of the records for the user.
> 
> If not, could anyone tell me how I can implement the type of real time
> counts described above please? I have Googled and read my books but can't
> work out the answer.
> 
> Thanks
> 
> Darren.
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to