Re: Programatically resizing a NSTableView
Re: Programatically resizing a NSTableView
- Subject: Re: Programatically resizing a NSTableView
- From: j o a r <email@hidden>
- Date: Wed, 1 Oct 2003 00:32:41 +0200
It's probably since the table view is inside a scroll view that
controls it's size. Try to change the size of the enclosing scroll view
instead:
NSSize currentSize = [[myTableView enclosingScrollView] frame].size;
currentSize.width = currentSize.width / 2;
[[myTableView enclosingScrollView] setFrameSize: currentSize];
[[myTableView enclosingScrollView] setNeedsDisplay: YES];
j o a r
On 2003-09-30, at 21.46, Rolf wrote:
I am desperately trying to resize a NSTableView programatically but it
just won't resize and I don't understand why.
I have tried setFrame, setFrameSize, added setNeedsDisplay, etc. Why
doesn't setFrame work, and what's the correct way to do it ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.