Re: NSTableView with reversed rows?

2014-10-03 Thread Willeke

Op 2 okt 2014, om 23:13 heeft Luc Van Bogaert het volgende geschreven:

> That's not exactly what I meant, but it might be part of a solution.
> 
> I want the table to populate 'from the bottom to the top', so that the free 
> space in the scrollview (if there is any) is at the top, above the top row, 
> instead of below the bottom table row.
> 
> I hope I have expressed more clear what I 'm looking for.
> -- 
> Luc Van Bogaert

Override -[NSScrollView tile], call super and move the document view to the 
bottom if there is space left?

--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 with reversed rows?

2014-10-03 Thread Jonathan Mitchell


On 3 Oct 2014, at 07:25, Luc Van Bogaert  wrote:

> Sure, the table will display 'layer' objects that can be stacked onto each 
> other. So the first layer should be displaced at the bottom of the stack, the 
> second layer on top of the first, and so on... So in fact, I would like to 
> have a table that represents a stack of objects that 'grows' upwards.
> 
Another thought.

Use an NSStackView (if on 10.9) and add discrete views to the bottom gravity in 
inverse order.
You can embed an NSStackView in a NSScrollView - 
https://github.com/mugginsoft/TSStackView/blob/master/TSStackView.m#L452

J



___

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 with reversed rows?

2014-10-03 Thread Graham Cox

On 3 Oct 2014, at 4:25 pm, Luc Van Bogaert  wrote:

> Sure, the table will display 'layer' objects that can be stacked onto each 
> other. So the first layer should be displaced at the bottom of the stack, the 
> second layer on top of the first, and so on... So in fact, I would like to 
> have a table that represents a stack of objects that 'grows' upwards.


All apps I've seen that show layers still start at the top, even if the lowest 
one represents the bottom (or rear-most) layer. Adding a new layer on top of 
the stack inserts a row at the top and all the rest move down.

Tables are after all only a 'map' of your layers, as if someone had written 
down a list of them on paper. I've seen a more literal alternative that shows 
an actual stack of images layered in 3D with the 'current' layer exposed more 
fully and the remainder more edge-on (hard to describe but easy as a visual 
metaphor when you see it). Think a sort of vertical version of 'Cover Flow'.

--Graham



___

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 with reversed rows?

2014-10-02 Thread Luc Van Bogaert
Sure, the table will display 'layer' objects that can be stacked onto each 
other. So the first layer should be displaced at the bottom of the stack, the 
second layer on top of the first, and so on... So in fact, I would like to have 
a table that represents a stack of objects that 'grows' upwards.

-- 
Luc Van Bogaert
DotSketcher - www.rixhon.be


> Op 03 Oct 2014 om 03:15 heeft Graham Cox  het 
> volgende geschreven:
> 
> 
>> On 3 Oct 2014, at 7:13 am, Luc Van Bogaert  wrote:
>> 
>> I want the table to populate 'from the bottom to the top', so that the free 
>> space in the scrollview (if there is any) is at the top, above the top row, 
>> instead of below the bottom table row.
> 
> 
> May I ask why? Users are likely to be confused by an upside-down table, since 
> it's very rare to find such a thing, even outside of software.
> 
> --Graham
> 
> 

___

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 with reversed rows?

2014-10-02 Thread Graham Cox

On 3 Oct 2014, at 7:13 am, Luc Van Bogaert  wrote:

> I want the table to populate 'from the bottom to the top', so that the free 
> space in the scrollview (if there is any) is at the top, above the top row, 
> instead of below the bottom table row.


May I ask why? Users are likely to be confused by an upside-down table, since 
it's very rare to find such a thing, even outside of software.

--Graham



___

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 with reversed rows?

2014-10-02 Thread Quincey Morris
Why not enforce a minimum row count that accounts for the height of the table. 
Then, have your data source provide dummy rows for the ones at the top, when 
the actual count is less than the enforced count. You can have a special table 
cell for the dummy rows, or just hide all the content that would be in a 
regular cell.

On Oct 2, 2014, at 14:13 , Luc Van Bogaert  wrote:

> I want the table to populate 'from the bottom to the top', so that the free 
> space in the scrollview (if there is any) is at the top, above the top row, 
> instead of below the bottom table row.


___

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 with reversed rows?

2014-10-02 Thread Luc Van Bogaert
That's not exactly what I meant, but it might be part of a solution.

I want the table to populate 'from the bottom to the top', so that the free 
space in the scrollview (if there is any) is at the top, above the top row, 
instead of below the bottom table row.

I hope I have expressed more clear what I 'm looking for.
-- 
Luc Van Bogaert



> Op 02 Oct 2014 om 23:06 heeft Jonathan Hull  het volgende 
> geschreven:
> 
> Have you considered just inverting the data source?
> 
> Thanks,
> Jon
> 
> 
>> On Oct 2, 2014, at 12:45 PM, Luc Van Bogaert  wrote:
>> 
>> Hi,
>> 
>> I would like to implement a table (in a scrollview) where the first row 
>> displays at the bottom instead of at the top, the second row above the first 
>> and so on. How would I go about to accomplish this?
>> I've tried overriding 'isFlipped' in a subclass of the scrollview and the 
>> tableview but that didn't seem to make any difference. I didn't think it 
>> would be that easy anyway, but I have no idea where to start...
>> 
>> Thanks,
>> -- 
>> Luc Van Bogaert
>> 
>> ___
>> 
>> 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/jhull%40gbis.com
>> 
>> This email sent to jh...@gbis.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 with reversed rows?

2014-10-02 Thread Jonathan Hull
Have you considered just inverting the data source?

Thanks,
Jon


On Oct 2, 2014, at 12:45 PM, Luc Van Bogaert  wrote:

> Hi,
> 
> I would like to implement a table (in a scrollview) where the first row 
> displays at the bottom instead of at the top, the second row above the first 
> and so on. How would I go about to accomplish this?
> I've tried overriding 'isFlipped' in a subclass of the scrollview and the 
> tableview but that didn't seem to make any difference. I didn't think it 
> would be that easy anyway, but I have no idea where to start...
> 
> Thanks,
> -- 
> Luc Van Bogaert
> 
> ___
> 
> 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/jhull%40gbis.com
> 
> This email sent to jh...@gbis.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 with reversed rows?

2014-10-02 Thread Jonathan Mitchell

On 2 Oct 2014, at 20:45, Luc Van Bogaert  wrote:

> Hi,
> 
> I would like to implement a table (in a scrollview) where the first row 
> displays at the bottom instead of at the top, the second row above the first 
> and so on. How would I go about to accomplish this?
> I've tried overriding 'isFlipped' in a subclass of the scrollview and the 
> tableview but that didn't seem to make any difference. I didn't think it 
> would be that easy anyway, but I have no idea where to start...

I would try creating a vertical container NSView (Or an NSStackView for that 
matter) that contains two vertical subviews:

1. The first view is a blank placeholder constrained to be the same width and 
(height - NSTableView rowheight) as the NSScrollView content view. This forces 
the table view down.
2. An NSTableView instance bound to array of data items in reverse order via an 
NSArrayController. When adding items to the NSArrayController call - 
(void)insertObject:(id)object atArrangedObjectIndex:(NSUInteger)index with a 
zero index.

You will also have to figure out how to configure the vertical container within 
the NSScrollView.
This sort of thing. 
http://stackoverflow.com/questions/4599747/programmatically-creating-an-nstableview-trouble-getting-the-nsheaderview-to-sh

It might get you started.

J



___

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 with reversed rows?

2014-10-02 Thread Luc Van Bogaert
Hi,

I would like to implement a table (in a scrollview) where the first row 
displays at the bottom instead of at the top, the second row above the first 
and so on. How would I go about to accomplish this?
I've tried overriding 'isFlipped' in a subclass of the scrollview and the 
tableview but that didn't seem to make any difference. I didn't think it would 
be that easy anyway, but I have no idea where to start...

Thanks,
-- 
Luc Van Bogaert



smime.p7s
Description: S/MIME cryptographic signature
___

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