Re: NSTableView: Rows from bottom up

2015-09-03 Thread Eric Gorr
I went ahead and used a DTS ticket and the response I got back from Apple is 
that there is no supported way to do what I want.

So, I am left with something custom or attempting to fake it by determining the 
number of rows I need to fill the table (when there aren’t enough already) and 
ordering my data appropriately.


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Gary L. Wade
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  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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Roland King
Again that is not the question he was asking. He wants to know how to have a 
tableview which, if it has say one single row, shows that one single row at the 
bottom of the enclosing scrollview instead of at the top. 

Inserting the rows in order is not his problem, its’ getting the table view to 
be ‘bottom heavy’

> On 1 Sep 2015, at 18:48, dangerwillrobinsondan...@gmail.com wrote:
> 
> Data order is the simplest way to do what you want. 
> Just insert everything at the end. 
> Then also ensure no sorting. 
> 
> Sent from my iPhone
> 
>> On Sep 1, 2015, at 7:27 PM, Eric Gorr  wrote:
>> 
>> 
>>> On Aug 31, 2015, at 10:00 PM, Keary Suska  wrote:
>>> 
>>> On Aug 31, 2015, at 7:51 PM, Eric Gorr  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.
>>> 
>>> Unless something changed before I used it last, the insert location will 
>>> depend on how you add an object, i.e. -add: vs -insert:, as well as any 
>>> sorting settings. Using -add: should always append to the end of the 
>>> collection as long as it is unsorted or does not re-sort automatically. If 
>>> you use your own method to add new objects, you can do whatever you want. 
>>> No need to customize much.
>> 
>> I am talking about the location where the rows are drawn, not how the data 
>> is ordered.
>> 
>> 
>> 
>> ___
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/dangerwillrobinsondanger%40gmail.com
>> 
>> This email sent to dangerwillrobinsondan...@gmail.com
> 
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-09-01 Thread dangerwillrobinsondanger
Data order is the simplest way to do what you want. 
Just insert everything at the end. 
Then also ensure no sorting. 

Sent from my iPhone

> On Sep 1, 2015, at 7:27 PM, Eric Gorr  wrote:
> 
> 
>> On Aug 31, 2015, at 10:00 PM, Keary Suska  wrote:
>> 
>> On Aug 31, 2015, at 7:51 PM, Eric Gorr  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.
>> 
>> Unless something changed before I used it last, the insert location will 
>> depend on how you add an object, i.e. -add: vs -insert:, as well as any 
>> sorting settings. Using -add: should always append to the end of the 
>> collection as long as it is unsorted or does not re-sort automatically. If 
>> you use your own method to add new objects, you can do whatever you want. No 
>> need to customize much.
> 
> I am talking about the location where the rows are drawn, not how the data is 
> ordered.
> 
> 
> 
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/dangerwillrobinsondanger%40gmail.com
> 
> This email sent to dangerwillrobinsondan...@gmail.com

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Willeke
You can move the table view to the bottom of the scroll view in an override of 
-[NSScrollView tile].

Déjà vu
http://cocoa-dev.apple.narkive.com/cwH1sLmk/nstableview-with-reversed-rows

- Willeke


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Roland King

> On 1 Sep 2015, at 18:27, Eric Gorr  wrote:
> 
>> 
>> On Aug 31, 2015, at 10:00 PM, Keary Suska  wrote:
>> 
>> On Aug 31, 2015, at 7:51 PM, Eric Gorr  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.
>> 
>> Unless something changed before I used it last, the insert location will 
>> depend on how you add an object, i.e. -add: vs -insert:, as well as any 
>> sorting settings. Using -add: should always append to the end of the 
>> collection as long as it is unsorted or does not re-sort automatically. If 
>> you use your own method to add new objects, you can do whatever you want. No 
>> need to customize much.
> 
> I am talking about the location where the rows are drawn, not how the data is 
> ordered.
> 
> 

Yes that was pretty clear from your original mail. Have you tried flipping the 
tableview or the containing scrollview, or both? 
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Eric Gorr

> On Aug 31, 2015, at 10:00 PM, Keary Suska  wrote:
> 
> On Aug 31, 2015, at 7:51 PM, Eric Gorr  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.
> 
> Unless something changed before I used it last, the insert location will 
> depend on how you add an object, i.e. -add: vs -insert:, as well as any 
> sorting settings. Using -add: should always append to the end of the 
> collection as long as it is unsorted or does not re-sort automatically. If 
> you use your own method to add new objects, you can do whatever you want. No 
> need to customize much.

I am talking about the location where the rows are drawn, not how the data is 
ordered.



___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: NSTableView: Rows from bottom up

2015-08-31 Thread Keary Suska
On Aug 31, 2015, at 7:51 PM, Eric Gorr  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.

Unless something changed before I used it last, the insert location will depend 
on how you add an object, i.e. -add: vs -insert:, as well as any sorting 
settings. Using -add: should always append to the end of the collection as long 
as it is unsorted or does not re-sort automatically. If you use your own method 
to add new objects, you can do whatever you want. No need to customize much.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

NSTableView: Rows from bottom up

2015-08-31 Thread Eric Gorr
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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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