Re: Testing NSLineBreakByTruncatingTail
Re: Testing NSLineBreakByTruncatingTail
- Subject: Re: Testing NSLineBreakByTruncatingTail
- From: "Paul G. Fitzgerald" <email@hidden>
- Date: Tue, 13 Jan 2004 11:11:10 -0600
Yes, somewhat non-obvious. :-) Thanks a bunch, it works great!
Paul
----- Original Message -----
From: "cricket" <email@hidden>
To: <email@hidden>
Sent: Monday, January 05, 2004 12:51 PM
Subject: Re: Testing NSLineBreakByTruncatingTail
>
> 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.
_______________________________________________
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.