Re: [newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar

2008-03-13 Thread Tobias R.
On 3/10/08, Stephane Sudre [EMAIL PROTECTED] wrote:

 Short answer: No.

  It might be easier to use 2 NSTableViews side by side, hide the
  vertical scrollbars on the leftmost tableview and synchronize the
  scrolling

Scrolling works.

MyController:

IBOutlet id leftScrollView;
IBOutlet id rightScrollView;

[[leftScrollView verticalScroller] bind:@doubleValue
toObject:[rightScrollView verticalScroller] withKeyPath:@doubleValue
options:nil];

 and selection (both key and scroller) in both tableviews.

Sorry, I don't get it. How should I do that?

Thanks in advance!

Tobias R.
___

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

This email sent to [EMAIL PROTECTED]


[newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar

2008-03-10 Thread Tobias R.
Hi,

I have a csv-file as datasource for an NSTableView. This part of my
project works.

And now my Question:
Is there a way to make the first NSColumn of my NSTableView ...
a) always visible and
b) not being affected by the horizontal scrollbar, but only the
vertical scrollbar?

#  | Column 1 |  Column 2 |
---
1  | Content 1 |  Content 2 | ^
2  | Content 1 |  Content 2 | (vertical scrollbar)
3  | Content 1 |  Content 2 |
|-horizontal scrollbar-|


To make it clear:
I dont want to edit the TableHeader. I want a left side bar like the
once from iWork Numbers or Excel.

Thanks in advance for any help and suggestions,
Tobias R.
___

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

This email sent to [EMAIL PROTECTED]


Re: [newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar

2008-03-10 Thread Stephane Sudre


On 10 mars 08, at 12:54, Tobias R. wrote:


Hi,

I have a csv-file as datasource for an NSTableView. This part of my
project works.

And now my Question:
Is there a way to make the first NSColumn of my NSTableView ...
a) always visible and
b) not being affected by the horizontal scrollbar, but only the
vertical scrollbar?


Short answer: No.

It might be easier to use 2 NSTableViews side by side, hide the 
vertical scrollbars on the leftmost tableview and synchronize the 
scrolling and selection (both key and scroller) in both tableviews.


___

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

This email sent to [EMAIL PROTECTED]