• 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
NSBrowser and NSLineBreakByTruncatingMiddle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBrowser and NSLineBreakByTruncatingMiddle


  • Subject: NSBrowser and NSLineBreakByTruncatingMiddle
  • From: Louis Sinclair <email@hidden>
  • Date: Tue, 23 Jan 2007 14:27:28 -0600

We've got an NSBrowser in an app that we're trying to get to behave like Finder. Most of it is working, except for the text is breaking at word boundaries. We want it to break in the middle. We subclassed NSBrowserCell, and explicitly set the line break mode before assigning the cell to our columns. I also put the call to setLineBreakMode in the NSBrowserCell subclass's initTextCell method.

I've seen references to a bug with this in earlier versions of the OS, but that is was fixed with Panther.

Is there a special trick to getting a Finder like browser?


-- Louis Sinclair Minnetonka Audio Software, Inc.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSBrowser and NSLineBreakByTruncatingMiddle
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: NSTextView Lucida Grande/Helvetica problem
  • Next by Date: Re: NSTextView Lucida Grande/Helvetica problem
  • Previous by thread: Re: Programmatically click a column header in NSTableView
  • Next by thread: Re: NSBrowser and NSLineBreakByTruncatingMiddle
  • Index(es):
    • Date
    • Thread