Re: Ellipsis + Proper Expansion Frame + HScroll-Edit in 10.6 NSTableView (was "Clipped Tooltip")
Re: Ellipsis + Proper Expansion Frame + HScroll-Edit in 10.6 NSTableView (was "Clipped Tooltip")
- Subject: Re: Ellipsis + Proper Expansion Frame + HScroll-Edit in 10.6 NSTableView (was "Clipped Tooltip")
- From: Corbin Dunn <email@hidden>
- Date: Wed, 27 Jan 2010 15:38:39 -0800
>
>
> However, I know there is a magic formula somewhere, because when I use the default cell returned by -[NSTableColumn dataCell], all three requirements are satisfied. Statically, I see that it sets all three attributes to NO. But when I try this with a raw NSTextFieldCell, only requirement 1 is satisfied.
>
> Maybe there is another attribute involved -- NSCell has several dozen more. Anybody got a good guess?
Hey Jerry,
I'm sorry; I don't have time to go into the details, but I can tell you what NSTableColumn's default cell is initialized with. It is:
NSTextFieldCell
setEditable:YES
setScrollable:YES
setDrawsBackground:NO
setFont:(systemFontSize)
setLineBreak:NSLineBreakByTruncatingTail
setBackgroundColor:[NSColor controlBackgroundColor]
Good luck,
corbin
_______________________________________________
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