• 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
Summary row for Scrolled TableView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Summary row for Scrolled TableView.


  • Subject: Summary row for Scrolled TableView.
  • From: Toby Sargeant <email@hidden>
  • Date: Sun, 26 Jan 2003 13:02:11 +1100

I was wondering what the best way to implement a summary row
(e.g. a row at the bottom of the view of the table that scrolls
left and right, and shows per-column totals) for a TableView
would be.

I would have thought that this was a reasonably common mode
of use for tables, but I haven't been able to find any support
for or example code. ScrolledView Rulers seem to provide part
of the solution, but it appears that they are fixed to the top
and right sides of the ScrolledView, whereas I'm more interested
in bottom (and left).

The other alternatives I have come up with are:

1) subclass NSTableView. This has the advantage that I can use
the existing dataSource, and that I presume the drawing hooks
are already in place, but has the disadvantage that the
TableView has to be aware of the fact that it's embedded in an
NSClipView.

2) reimplement NSScrolledView to restrict the content view
slightly, and add a second content view with associated
1 row table below it. This seems like more work, but may
be the cleaner solution, although synchronizing the column
widths of the two tables will probably prove to be a bit
messy.

Does apple release the source to its cocoa controls? That would
be *exceedingly* useful (I got a lot from being able to poke
around in the Swing internals), but I doubt somehow that they
do.

Toby.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Beginner question - Cocoa outlet using a method
  • Next by Date: Re: Beginner question - Cocoa outlet using a method
  • Previous by thread: [SOLVED] Re: NSProxy and ... memory troubles
  • Next by thread: Non-working NSButtonCells (can change state even is not enabled)
  • Index(es):
    • Date
    • Thread