• 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: How can I get horizontal scrollbars adequate to the widest list entry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I get horizontal scrollbars adequate to the widest list entry


  • Subject: Re: How can I get horizontal scrollbars adequate to the widest list entry
  • From: Andreas Falkenhahn via Cocoa-dev <email@hidden>
  • Date: Wed, 11 Nov 2020 16:38:37 +0100

> Yes, just add a fudge factor to ensure the column will be wide
> enough to accommodate the string width AND the spacing between the
> left and right edges of the actual NSTextField in the cell. You can
> inspect the field in the table to see those distances.

Ok, but how can I get those distances? I've tried the following:

    NSView *view = [tableView viewAtColumn:0 row:idx makeIfNecessary:YES];
    NSRect bounds = [view bounds];

But bounds.origin.x and bounds.size.width are always 0...

--
Best regards,
 Andreas Falkenhahn                            mailto:email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: How can I get horizontal scrollbars adequate to the widest list entry
      • From: Steven Mills via Cocoa-dev <email@hidden>
References: 
 >How can I get horizontal scrollbars adequate to the widest list entry (From: Andreas Falkenhahn via Cocoa-dev <email@hidden>)
 >Re: How can I get horizontal scrollbars adequate to the widest list entry (From: Steven Mills via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: How can I get horizontal scrollbars adequate to the widest list entry
  • Next by Date: Re: How can I get horizontal scrollbars adequate to the widest list entry
  • Previous by thread: Re: How can I get horizontal scrollbars adequate to the widest list entry
  • Next by thread: Re: How can I get horizontal scrollbars adequate to the widest list entry
  • Index(es):
    • Date
    • Thread