• 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: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? [COROLLARY]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 14:55:51 -0800

Flushed with some semblance of success I'm now trying to get Finder's behaviour with inserting centre ellipses when the text is too large for its container.

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.

Is there some other mechanism to achieve what I'm after? Perhaps this requires NSTextView-Fu (of which I currently have next to none).



On 4-Mar-09, at 2:23 PM, Luke Evans wrote:

OK. I managed to get things working.

_______________________________________________

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


  • Follow-Ups:
    • 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: Eric Gorr <email@hidden>
References: 
 >Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? (From: Luke Evans <email@hidden>)
 >Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? (From: Eric Gorr <email@hidden>)
 >Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? (From: Luke Evans <email@hidden>)
 >Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? (From: Eric Gorr <email@hidden>)
 >Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? [SOLVED] (From: Luke Evans <email@hidden>)

  • Prev by Date: Re: Checking for NULL (was "Re: Can't get setDelegate to work...")
  • Next by Date: 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]
  • Previous by thread: Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell? [SOLVED]
  • Next by thread: 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]
  • Index(es):
    • Date
    • Thread