• 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
NSTableView, columns only (live)resize without data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView, columns only (live)resize without data


  • Subject: NSTableView, columns only (live)resize without data
  • From: Brian Amerige <email@hidden>
  • Date: Thu, 9 Nov 2006 08:51:19 -0500

Hi all,

I know I've asked this question before, but I've actually learned a little bit more about what's going on behind a live Resize in an NSTableView. Given that, I've also noticed one additional thing.


My tableview actually performs exactly what it's supposed to, but only without data. It'll resize all columns uniformly, perfectly. The problem is, as soon as data is added to the tableView (not a lot of data either, I've tested with everything from one to one hundred rows), the behavior of the live resize is significantly different. While it appears to call sizeToFit: just the same as without data, it doesnt' seem to have any affect. It waits until I've finished resizing to send the sizeToFit: call, where it actually

I've tried over-riding inLiveResize: to tell it to call sizeToFit: every no matter what (right before I return [super inLiveResize]), but the resize artifacts still seem evident.

I know others have been asked this, and I definitely know it's possible, but again, there doesn't seem to be a succinct answer. Is it a bug in NSTableView we've got to fix via our subclasses?

Open to any comments,
Brian.
_______________________________________________
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


  • Prev by Date: RE: Weird problem with NSBezierpath fill method
  • Next by Date: NSTableView, columns only (live)resize without data
  • Previous by thread: Re: How to traverse from one window to another
  • Next by thread: NSTableView, columns only (live)resize without data
  • Index(es):
    • Date
    • Thread