Re: SOLVED: Workaround to force painting of NSSplitView's
Re: SOLVED: Workaround to force painting of NSSplitView's
- Subject: Re: SOLVED: Workaround to force painting of NSSplitView's
- From: email@hidden
- Date: Fri, 15 Mar 2002 18:49:00 -0800
I'm switching an NSSplitView in between vertical and horizontal
orientation by user input, and I have found that switching a
visible NSSplitView's orientation doesn't cause the split bar
(the area between the two panes) to redraw properly... you see
the remanents of what was there before the split view changed.
Ah, I found a workaround. invoke adjustSubviews on the
splitview after changing its orientation.
Maybe I'm not understanding the problem, but [splitview
setNeedsDisplay:YES] seems like it might be more straightforward.
Does that not work?
I wouldn't expect -setNeedsDisplay: to cause an NSSplitView to re-tile
its subviews.
Perhaps I read too literally, but in the original post (quoted above),
he said that "switching...orientation doesn't cause the split bar...to
redraw properly... you see the remnants of what was there before the
split view changed". That sounded to me like it might be a simple
drawing problem, not a layout problem. Anyhow, just a suggestion...
Ben Haller
Stick Software
_______________________________________________
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.