• 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: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo


  • Subject: Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
  • From: Dave <email@hidden>
  • Date: Sun, 24 Apr 2016 18:13:33 +0100

Hi,


> On 24 Apr 2016, at 17:29, Bill Cheeseman <email@hidden> wrote:
>
>
>> On Apr 24, 2016, at 12:04 PM, Dave <email@hidden <mailto:email@hidden>> wrote:
>>
>> I’m not sure what you mean? Is this a method or property on NSScrollView or NSTextView?
>>
>> I can’t see it in the XIB file?
>
>
> In an NSTextField, IB shows you the "Layout" pop-up menu, which includes a "truncate" item, and the "Uses Single Line Mode" checkbox just below. From the docs, I think the single line mode might ignore the Layout settings. The same IB controls are of course available in the text field in the cell view in a view-based table view. The methods underlying these settings are in NSCell.

I’ve got the Text View Selected in XCode/IB and I can’t find any option for “Layout” in any of the property tabs? Auto-layout is off at the moment for this window, it wouldn’t have anything to do with that would it?
>
> You can control trucation behavior in an NSTextView by using NSTextStorage, which is a subclass of NSMutableAttributedString. The truncation methods are in NSParagraphStyle).

Thanks a lot,
All the Best
Dave

_______________________________________________

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: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
      • From: Bill Cheeseman <email@hidden>
References: 
 >How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo (From: Dave <email@hidden>)
 >Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo (From: Andreas Mayer <email@hidden>)
 >Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo (From: Dave <email@hidden>)
 >Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
  • Next by Date: Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
  • Previous by thread: Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
  • Next by thread: Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo
  • Index(es):
    • Date
    • Thread