• 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
double click between headers to autosize column ala iTunes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: double click between headers to autosize column ala iTunes?
      • From: George Orthwein <email@hidden>
  • Prev by Date: MEETING: Chicago CocoaHeads / CAWUG Tuesday Feb. 13 6:00 pm
  • Next by Date: Re: unsigned long long + id = ???
  • Previous by thread: CANCELED -- MEETING: Chicago CocoaHeads / CAWUG Tuesday Feb. 13 6:00 pm
  • Next by thread: Re: double click between headers to autosize column ala iTunes?
  • Index(es):
    • Date
    • Thread