• 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: Jim Correia <email@hidden>
  • Date: Mon, 5 Jan 2004 14:26:17 -0500

On Jan 5, 2004, at 1:51 PM, cricket wrote:

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];
}

Is this documented anywhere? (I didn't see it in the release notes or the NSCell documentation.)

Is it possible to control which truncation method is used?

Jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: Testing NSLineBreakByTruncatingTail
      • From: cricket <email@hidden>
References: 
 >Re: Testing NSLineBreakByTruncatingTail (From: cricket <email@hidden>)

  • Prev by Date: Re: People who develop with MySQL and/or other GPL based code
  • Next by Date: RE: NSBox subview size
  • Previous by thread: Re: Testing NSLineBreakByTruncatingTail
  • Next by thread: Re: Testing NSLineBreakByTruncatingTail
  • Index(es):
    • Date
    • Thread