Re: Rotating an NSTableView.
Re: Rotating an NSTableView.
- Subject: Re: Rotating an NSTableView.
- From: Michael Nickerson <email@hidden>
- Date: Fri, 2 May 2008 19:53:38 -0400
On May 1, 2008, at 8:27 AM, Peter Hudson wrote:
I have an NSTable View inside an NSSplitView.
I rotate the table view by sending rotateByAngle:270 to the
enclosing scroll view.
The table lands up exactly as I want it with vertical rows.
The problem is that when I resize the split view the NSTableView
does not change size to fit the split view movement as it does when
the table is not rotated.
Does anyone have any idea what is going on. I've tried all the
usual games with setting frame and bounds etc - but to no avail.
It looks like there's a bug in NSScrollView, where it stops calling -
tile when it's rotated.
You can work around the problem by listening to the scroll view's
frame change notifications, and calling -tile on it manually.
I submitted a bug against this with source code to demonstrate the
problem: <rdar://5908380>
Corbin - there's also a bug where the table headers aren't drawn
correctly when it's rotated. I didn't submit a bug on that one - let
me know if you'd like me to. It'd take just a quick edit of the
sample code I did above to have the table headers showing.
--------------------------------------
Darkshadow
(aka Michael Nickerson)
http://www.nightproductions.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden