• 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: NSTableView: Rows from bottom up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView: Rows from bottom up


  • Subject: Re: NSTableView: Rows from bottom up
  • From: "Gary L. Wade" <email@hidden>
  • Date: Tue, 01 Sep 2015 05:56:44 -0700

One way to do this is to not use a table view but just a simple scroll/clip view setup and embed your content within it, pinning it only to the left, right, and bottom edges of the clip view and do your drawing in that view. You might be able to do it with a table view (and the typically associated scroll/clip view) if you disconnect the top connection of the table view from its clip view. I think they use the autolayout/alignment setting, but you might need full autolayout. After doing that, just draw your items in the reverse-order or insert from bottom of a table view to get it to grow up. Half-awake right now, but hope that gets you started.
--
Gary L. Wade (Sent from my iPad)
http://www.garywade.com/

> On Aug 31, 2015, at 6:51 PM, Eric Gorr <email@hidden> wrote:
>
> Normally when one adds the first row to a NSTableView, it will appear at the top of the view and additional rows will appear below it. Is it possible to have the first row appear at the bottom of the NSTableView and for new rows to appear above it?
>
> No doubt this would require some extensive customization. I am open to alternative solutions, but the one invariant will remain…first row at the bottom and additional rows appearing above.
>
> I could fake it by creating a large enough number of rows so the view is filled and setting the scroll position to the bottom, but I find that to be a bit inelegant…although, I would go that route before doing something completely custom.
>
> If you are wondering why someone might need such a thing, consider the case of a calculator where the most common way to view the numbers (at least for RPN entry) is for the most recent entry or calculation is to appear at the bottom and previous entries to appear above it.

_______________________________________________

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


  • Follow-Ups:
    • Re: NSTableView: Rows from bottom up
      • From: Eric Gorr <email@hidden>
  • Prev by Date: Re: NSTableView: Rows from bottom up
  • Next by Date: Re: How to terminate an NSTask whenever my app terminates?
  • Previous by thread: Re: NSTableView: Rows from bottom up
  • Next by thread: Re: NSTableView: Rows from bottom up
  • Index(es):
    • Date
    • Thread