• 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 column header drawing issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView column header drawing issue


  • Subject: NSTableView column header drawing issue
  • From: Mark Lilback <email@hidden>
  • Date: Wed, 20 Apr 2005 13:43:02 -0500

I've got an NSTableView that has been configured so that the width of the columns does not fill up the entire tableview, so there is empty space at the end. This was configured by the user, so I can not just extend the size of the last column. I also don't want to add a fake column at the end.

When a click is made on the last column, the column is highlighted properly, but the empty space gets a slightly darker tint that does not disappear unless another column header is clicked, or the column is resized manually (but not programatically).

Mail seems to have this same issue, but something is being done to avoid get around it. If you click on the last column in a Mail window (with extra space to the right), you will see a brief flash in the extra space as the tint change I mention is made. But then it returns to the correct tint.

I've copied this behavior by having my tableView:didClickTableColumn: handler, if the last column was clicked, call performSelectorOnMainThread with a method that does the following:

	float width = [column width];
	[column setWidth: width+0.01];
	[column setWidth: width-0.01];

There is no visual change to the user except the flash.

Is there a better way to do this?

Is there a way to avoid having the tint change in the first place?

Thanks

--
__________________________________________________________________________
                         "The fetters imposed on liberty at home have ever
Mark J. Lilback           been forged out of the weapons provided for
<email@hidden>        defence against real, pretended, or imaginary
http://www.lilback.com/   dangers from abroad."  -- James Madison
_______________________________________________
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: Printing large DB reports
  • Next by Date: Need more help with mouse input....
  • Previous by thread: Writing a system daemon in Cocoa and keeping things secure
  • Next by thread: Need more help with mouse input....
  • Index(es):
    • Date
    • Thread