• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView and variable row heights problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and variable row heights problem


  • Subject: Re: NSTableView and variable row heights problem
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 17 Oct 2005 15:16:21 -0700

Am Oct 17, 2005 um 1:25 PM schrieb Stefan Fisk:

That is exactly what I'm doing. I've also filed a bug rapport (ID: 4297930) for it, with code and all. If you've got a working solution I would be most delighted.

Yeah, your problem is different than what I was thinking of. Really, the problem I'm thinking of manifests itself when the rows are each different heights. In your example, they are all the same heights. i did see the bug a while ago -- one quick tip: if you make a test case for the bug, feel free to attach the source code and project -- that will save me a little bit of time in recreating it so I can fix the issue.


Your particular visual glitches that are mentioned in the bug have to do with live-resize. To force tableview to not do it's live resize caching, create a simple subclass and call super's drawrect:

@implementation MyTableView

- (void)drawRect:(NSRect)r {
    [super drawRect:r];
}


@end


That fixes the drawing issues in the test case you attached in the bug. Thanks!
-corbin
_______________________________________________
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
References: 
 >NSTableView and variable row heights problem (From: Greg Herlihy <email@hidden>)
 >Re: NSTableView and variable row heights problem (From: Stefan Fisk <email@hidden>)
 >Re: NSTableView and variable row heights problem (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView and variable row heights problem (From: Stefan Fisk <email@hidden>)

  • Prev by Date: Can you float a window above iPhoto slide show?
  • Next by Date: lining up baseline of adjacent NSAttributedString s
  • Previous by thread: Re: NSTableView and variable row heights problem
  • Next by thread: Re: NSTableView and variable row heights problem
  • Index(es):
    • Date
    • Thread