Re: Trimming text in a tableview
Re: Trimming text in a tableview
- Subject: Re: Trimming text in a tableview
- From: Obi One <email@hidden>
- Date: Thu, 5 Jun 2003 07:18:25 -0700 (PDT)
I thought it was an implemented feature in the
tableview object but you have surely the right way to
do it :)
I found "LineBreakByTruncatingMiddle" in
NSParagraphStyle so now I'm trying to deal with
attributed strings and custom NSTextFieldCell...
>
If I were trying to do this, I'd probably make a
>
custom subclass of
>
NSTextFieldCell that draws using the behavior you
>
describe (i.e. check
>
the strings width against the cell's width, take out
>
some characters in
>
the middle, repeat until the string fits.), and use
>
that as the
>
dataCell of my table columns.
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.