NSOutlineView problem
NSOutlineView problem
- Subject: NSOutlineView problem
- From: Darrin Cardani <email@hidden>
- Date: Thu, 5 May 2005 16:01:42 -0500
I'm seeing something odd with an NSOutlineView. It's a 2-column
outline view inside a drawer and I have the "Autoresizes Columns to
fit" checkbox checked in Interface Builder. When the user first opens
the drawer, there is a single item in the outline view and it's
twirled shut. There's a vertical scrollbar on the NSOutlineView, but
the default window size is such that it's inactive initially.
What appears to be happening is that when the NSOutlineView is
created, the columns are properly sized so that both exactly fit
within the scroll view. As soon as the user twirls open the first
item, the left column gets wider to show the indented sub items.
However, it doesn't change the size of the right column, it just
moves it to the right, so it extends past the edge of the view and is
cut off. This is a big problem because one of the sub items is a
slider and it's default setting is such that the thumb is past the
right edge of the window by default.
If the user resizes the window, then the right column of the
NSOutlineView suddenly jumps back to fit properly like I want it to.
Interestingly, it doesn't matter if I set the "Autoresizes" bit or
not. I get the same functionality in both cases.
Is this a bug in NSOutlineView, or do I need to set something else to
make sure that whenever the left column is resized, whether
explicitly or implicitly by twirling open an item, that the right one
is also resized to fit in the window?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden