• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Testing NSLineBreakByTruncatingTail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Testing NSLineBreakByTruncatingTail (From: cricket <email@hidden>)

  • Prev by Date: HTTP POST
  • Next by Date: Re: Codewarrior for Cocoa
  • Previous by thread: Re: Testing NSLineBreakByTruncatingTail
  • Next by thread: Drawing outside NSScrollView clipping area
  • Index(es):
    • Date
    • Thread