NSBrowser and NSLineBreakByTruncatingMiddle
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