Fwd: How to join NSScrollView and NSTableView programmatically
Fwd: How to join NSScrollView and NSTableView programmatically
- Subject: Fwd: How to join NSScrollView and NSTableView programmatically
- From: email@hidden
- Date: Fri, 23 Sep 2005 09:23:36 +0800
Begin forwarded message:
From: email@hidden
Date: September 22, 2005 1:44:28 PM GMT+08:00
To: Jesse Grosjean <email@hidden>
Subject: Re: How to join NSScrollView and NSTableView programmatically
Really Sorry, I did miss that line. :P
I try your code and same as you.
And I figure a tricky solution, I think you might be interested.
I turn on and off the autohidesScrollers before showing the window
[scrollView setAutohidesScrollers:YES];
[scrollView setAutohidesScrollers:NO];
[window orderFront:nil];
And it works well.
I guess that's Apple's bug.
Anyway, hope this helps,
MacSmith
On Sep 22, 2005, at 10:30 AM, Jesse Grosjean wrote:
Msmith,
You might use setDocumentView instead of insert the tableview to
contentView as a subview.
contentView is just a placeholder for real content,document, and
clip the content.
For more information you could refer file:///Developer/ADC%
20Reference Library/documentation/Cocoa/Conceptual/DrawViews/
index.html
Thanks for your comments. I think the code that i attached is
already using setDocumentView. I add the tableView using this line:
[scrollView setDocumentView:tableView];
Did you miss that line or are you suggesting that I should do it
differently and NOT use setDocumentView?
Thanks,
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden