Re: Testing NSLineBreakByTruncatingTail
Re: Testing NSLineBreakByTruncatingTail
- Subject: Re: Testing NSLineBreakByTruncatingTail
- From: cricket <email@hidden>
- Date: Mon, 5 Jan 2004 10:51:17 -0800
I'm testing NSLineBreakByTruncatingTail on Panther. I haven't had any
luck. I'm trying to get the contents of an NSTableView to use the
style.
There's a test project here: http://homepage.mac.com/pgfitzgerald
Has anyone been able to get it to work?
Paul
Doesn't look like anyone responded to this. The somewhat non-obvious
answer to this is to set the wrapping behavior of the underlying cells
in the tableview. Looking at your test project, I added the following
to the top of your awakeFromNib method and the truncation worked as
expected.
NSEnumerator *columns = [[myTableView tableColumns]
objectEnumerator];
id column;
while (column = [columns nextObject]) {
[[column dataCell] setWraps:YES];
}
- cricket
_______________________________________________
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.