• 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: Count of records in an NSArrayController when associated NSTableView is filtered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count of records in an NSArrayController when associated NSTableView is filtered


  • Subject: Re: Count of records in an NSArrayController when associated NSTableView is filtered
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 16 Mar 2011 01:24:22 -0400

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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Count of records in an NSArrayController when associated NSTableView is filtered (From: Darren Wheatley <email@hidden>)

  • Prev by Date: Re: NSTableView Column Count
  • Next by Date: Re: [SOLVED] Re-mapping secondary function keys
  • Previous by thread: Count of records in an NSArrayController when associated NSTableView is filtered
  • Next by thread: crash in initWithCoder
  • Index(es):
    • Date
    • Thread