• 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: 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.

  • Follow-Ups:
    • Re: Testing NSLineBreakByTruncatingTail
      • From: "Paul G. Fitzgerald" <email@hidden>
    • Re: Testing NSLineBreakByTruncatingTail
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Security opinion needed
  • Next by Date: Re: NSPro UI clone?
  • Previous by thread: XCode and CVS
  • Next by thread: Re: Testing NSLineBreakByTruncatingTail
  • Index(es):
    • Date
    • Thread