How to toggle the subviews of a split view?
How to toggle the subviews of a split view?
- Subject: How to toggle the subviews of a split view?
- From: John Clayton <email@hidden>
- Date: Thu, 12 Dec 2002 19:02:55 -0500
I have a split view, in one subview of which I have stuffed a custom
view and inside of that a tab view with some outline views. I have set
the resizing atts in IB so that the subviews resize nicely when you
pull the split view divider around.
Now, I have overridden NSTabView for the tab view because I wanted to
capture MouseDown events and toggle the subview open and closed. It
works! Well, sort of. The toggling does work, but as you resize the
subview using the split view divider, and then toggle, you see a slight
difference in the open and closed positions of the subview, almost as
if the split view is readjusting the subview proportionally. I use the
outermost custom view in the subview to do the resizing, I get it's
frame, create a new rect with the width I want, and then set the frame
to the new rect. Seems like it should work, but logging tells me that
the final resized frame has a different width than the one I have set.
Hmmm. Your help is appreciated.
-john
John Clayton
--------------------------------
email@hidden
_______________________________________________
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.