double click between headers to autosize column ala iTunes?
double click between headers to autosize column ala iTunes?
- Subject: double click between headers to autosize column ala iTunes?
- From: George Orthwein <email@hidden>
- Date: Fri, 9 Feb 2007 18:20:06 -0500
When you hover between the table column headers in iTunes and get the
resize cursor, if you double-click the column will auto resize to the
width of its widest cell. I believe Excel does the same thing.
How can I detect if the double-click occurs in the header with the
resize cursor showing? Should I do something like in the link below
but check that I'm in the last 5 pixels of the table column? Or is
there a better way to tell if I'm in "resizing mode"?
http://www.cocoabuilder.com/archive/message/cocoa/2004/5/11/106845
How can I resize the column based on the widest cell? NSTableColumn
sizeToFit: appears to base the size on the header only.
Any pointers are appreciated.
Thanks!
George
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden