Single column NSListView bug?

  • I have a NSListView that is single column with a subclassed cell.
    However when i have a single column the cell is told to resize and new
    rectangles are passed in, however the drawing appears to be delayed,
    and when shrunk the column will not readraw.

    However... If i add a 2nd column with 0 width then all will redraw
    when resizing properly.

    Is this a known problem? Is this a 10.5 only issue?

    Scott
  • Scott, I'm assuming your listview is either a NSTableView or an NSOutlineView.

    I had a similar problem with a single-column NSOutlineView and I tracked it down to a supposed bug. The workaround is to override drawRect: and simply call [super drawRect:].

    Give it a try.

    Kevin
    xhead software

    Sent via BlackBerry by AT&T

    -----Original Message-----
    From: Scott Andrew <scottandrew...>

    Date: Sun, 2 Dec 2007 09:27:23
    To:<cocoa-dev...>
    Subject: Single column NSListView bug?

    I have a NSListView that is single column with a subclassed cell.
    However when i have a single column the cell is told to resize and new
    rectangles are passed in, however the drawing appears to be delayed,
    and when shrunk the column will not readraw.

    However... If i add a 2nd column with 0 width then all will redraw
    when resizing properly.

    Is this a known problem? Is this a 10.5 only issue?

    Scott
  • It was an NSTableView (getting my platform's crossed arg).. I will try
    that thanks..

    Scot

    On Dec 2, 2007, at 11:18 AM, Kevin wrote:

    > Scott, I'm assuming your listview is either a NSTableView or an
    > NSOutlineView.
    >
    > I had a similar problem with a single-column NSOutlineView and I
    > tracked it down to a supposed bug. The workaround is to override
    > drawRect: and simply call [super drawRect:].
    >
    > Give it a try.
    >
    > Kevin
    > xhead software
    >
    > Sent via BlackBerry by AT&T
    >
    > -----Original Message-----
    > From: Scott Andrew <scottandrew...>
    >
    > Date: Sun, 2 Dec 2007 09:27:23
    > To:<cocoa-dev...>
    > Subject: Single column NSListView bug?
    >
    >
    > I have a NSListView that is single column with a subclassed cell.
    > However when i have a single column the cell is told to resize and new
    > rectangles are passed in, however the drawing appears to be delayed,
    > and when shrunk the column will not readraw.
    >
    > However... If i add a 2nd column with 0 width then all will redraw
    > when resizing properly.
    >
    > Is this a known problem? Is this a 10.5 only issue?
    >
    > Scott
  • Please log bugs when you encounter problems like this.

    This is "live resize caching" not working like it should. By
    overriding drawRect:, live resize caching is turned off for what is
    assumed to be a "custom" tableview.

    --corbin

    On Dec 2, 2007, at 11:18 AM, Kevin wrote:

    > Scott, I'm assuming your listview is either a NSTableView or an
    > NSOutlineView.
    >
    > I had a similar problem with a single-column NSOutlineView and I
    > tracked it down to a supposed bug. The workaround is to override
    > drawRect: and simply call [super drawRect:].
    >
    > Give it a try.
    >
    > Kevin
    > xhead software
    >
    > Sent via BlackBerry by AT&T
    >
    > -----Original Message-----
    > From: Scott Andrew <scottandrew...>
    >
    > Date: Sun, 2 Dec 2007 09:27:23
    > To:<cocoa-dev...>
    > Subject: Single column NSListView bug?
    >
    >
    > I have a NSListView that is single column with a subclassed cell.
    > However when i have a single column the cell is told to resize and new
    > rectangles are passed in, however the drawing appears to be delayed,
    > and when shrunk the column will not readraw.
    >
    > However... If i add a 2nd column with 0 width then all will redraw
    > when resizing properly.
    >
    > Is this a known problem? Is this a 10.5 only issue?
  • I thought I did but I'll check and if it hasn't been logged, I'll do so.

    Kevin
    xhead software

    Sent via BlackBerry by AT&T

    -----Original Message-----
    From: Corbin Dunn <corbind...>

    Date: Mon, 03 Dec 2007 12:44:02
    To:<kevin...>
    Cc:Scott Andrew <scottandrew...>, <cocoa-dev...>
    Subject: Re: Single column NSListView bug?

    Please log bugs when you encounter problems like this.

    This is "live resize caching" not working like it should. By
    overriding drawRect:, live resize caching is turned off for what is
    assumed to be a "custom" tableview.

    --corbin

    On Dec 2, 2007, at 11:18 AM, Kevin wrote:

    > Scott, I'm assuming your listview is either a NSTableView or an
    > NSOutlineView.
    >
    > I had a similar problem with a single-column NSOutlineView and I
    > tracked it down to a supposed bug. The workaround is to override
    > drawRect: and simply call [super drawRect:].
    >
    > Give it a try.
    >
    > Kevin
    > xhead software
    >
    > Sent via BlackBerry by AT&T
    >
    > -----Original Message-----
    > From: Scott Andrew <scottandrew...>
    >
    > Date: Sun, 2 Dec 2007 09:27:23
    > To:<cocoa-dev...>
    > Subject: Single column NSListView bug?
    >
    >
    > I have a NSListView that is single column with a subclassed cell.
    > However when i have a single column the cell is told to resize and new
    > rectangles are passed in, however the drawing appears to be delayed,
    > and when shrunk the column will not readraw.
    >
    > However... If i add a 2nd column with 0 width then all will redraw
    > when resizing properly.
    >
    > Is this a known problem? Is this a 10.5 only issue?
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