Re: Rotating an NSTableView.

2008-05-02 Thread Michael Nickerson


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 (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: Rotating an NSTableView.

2008-05-01 Thread Corbin Dunn


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.


That's cool!




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.


Is your splitview splitting horizontal or vertical?

Have you tried rotating the enclosing scrollview instead of the table  
itself?


Have you tried manually calling -tile on the table?

Note: I haven't tried this myselfthese are just things that came  
to mind.


corbin
___

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]