GC Drawer Madness

  • I have what appears to be a garbage collection bug with drawers and I
    can't figure out a work around.

    The basic problem is that a drawer won't resize with the parent window
    when garbage collection is enabled. This is easily produced with the
    DrawerMadness sample code. Run the code straight up, and the left
    drawer nicely resizes as you resize the parent window. Enable garbage
    collection, and suddenly the drawer on the left won't resize with the
    parent window. If you 'jiggle' the drawer after the parent window
    resized, it will snap to the appropriate position.

    I have tried overriding drawerWillResizeContents:toSize, but despite
    the documentation's claim that it's called when the drawer or parent
    are resized, it only seems to be called when the drawer is resized,
    not the parent. So it does no good.

    Maybe I'm missing something obvious here -- help is definitely
    appreciated.

    thanks,
    Jeffrey
  • On Dec 8, 2007, at 3:35 PM, Jeffrey J. Early wrote:
    > I have what appears to be a garbage collection bug with drawers and
    > I can't figure out a work around.
    >
    > The basic problem is that a drawer won't resize with the parent
    > window when garbage collection is enabled. This is easily produced
    > with the DrawerMadness sample code. Run the code straight up, and
    > the left drawer nicely resizes as you resize the parent window.
    > Enable garbage collection, and suddenly the drawer on the left won't
    > resize with the parent window. If you 'jiggle' the drawer after the
    > parent window resized, it will snap to the appropriate position.

    That ain't right!

    File a bug, please.

    b.bum
previous month december 2007 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