Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? [COROLLARY]
Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? [COROLLARY]
- Subject: Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? [COROLLARY]
- From: Luke Evans <email@hidden>
- Date: Wed, 4 Mar 2009 16:21:04 -0800
We seem to be developing in sync at the moment ;-)
I'll watch your thread to see what develops...
On 4-Mar-09, at 3:04 PM, Eric Gorr wrote:
On Mar 4, 2009, at 5:55 PM, Luke Evans wrote:
I can get the ellipsis at the tail of the text easily enough
(NSStringDrawingTruncatesLastVisibleLine), and I thought I had a
bead on the problem remembering that NSParagraphStyle has a setting
for this - but actually it has a setting for breaking each line in
the paragraph (i.e. according to end-of-lines in the text), rather
than what happens typographical wrapping. As I have no line
breaks in my text I'll always get one line of laid-out text, with
the ellipsis in the middle - not what I'm after.
Well, to try to accomplish this, I have my own NSView which is
drawing a string with a NSLayoutManager.
I haven't quite come up with a solution, but I believe I am close
and need to leave for today. Just moments ago, I started a thread on
this topic with this message:
http://lists.apple.com/archives/cocoa-dev/2009/Mar/msg00246.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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