Hiding NSTableColumn causes other columns to shrink

  • Hi List,

      it appears it's time for a stupid question again. I'm experiencing
    some odd behavior of NSOutlineView (probably NSTableView as well) when
    hiding and showing table columns dynamically.

    I have an outline with a number of columns, the first and last column
    have "resize with table" turned on, most of the other columns don't.
    Now, when I change [column isHidden] of any column programmatically,
    the first and last column shrink to their minimum size (as set in IB).
    It doesn't matter whether a column gets hidden or shown, the effect is
    the same for both actions.

    The shrinking appears to affect the two outermost columns (from left
    and right edge respectively) that have "resize with table" set.

    Does anyone know why? Is there a cure (other than turning off "resize
    with table")?

    I'm using Xcode 3.0 on Mac OS 10.5.4

    Regards
    Markus
    --
  • On Aug 16, 2008, at 6:59 PM, Markus Spoettl wrote:

    > Hi List,
    >
    > it appears it's time for a stupid question again. I'm experiencing
    > some odd behavior of NSOutlineView (probably NSTableView as well)
    > when hiding and showing table columns dynamically.
    >
    > I have an outline with a number of columns, the first and last
    > column have "resize with table" turned on, most of the other columns
    > don't. Now, when I change [column isHidden] of any column
    > programmatically, the first and last column shrink to their minimum
    > size (as set in IB). It doesn't matter whether a column gets hidden
    > or shown, the effect is the same for both actions.
    >
    > The shrinking appears to affect the two outermost columns (from left
    > and right edge respectively) that have "resize with table" set.
    >
    > Does anyone know why? Is there a cure (other than turning off
    > "resize with table")?

    It's trying to take up the size that has been added/removed with the
    available (resizable) columns. It sounds like bug -- can you please
    log a bug to bugreporter.apple.com? If you have a test project, that
    will speed up the process.

    thanks,
    corbin
previous month august 2008 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Go to today