Re: How can I get horizontal scrollbars adequate to the widest list entry
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