• 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: NSTextView Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Question


  • Subject: Re: NSTextView Question
  • From: Dave <email@hidden>
  • Date: Tue, 08 Sep 2015 15:37:43 +0100

Hi, Having thought about it a bit more, I think I understand, the problem was that the data I wish to display has two types of data embedded in it. The first type is more of a NSTextView in that it should wrap as necessary as the Text Box Frame changes size and another type that is a list, e.g. lines of text terminated by Newlines. In this case I want them to truncate and to be able to Scroll Horizontally. I think the best way is to have two fields: a NSTextView and a NSTextField.

Cheers
Dave

> On 8 Sep 2015, at 15:22, Dave <email@hidden> wrote:
>
> Hi All,
>
> I’ve got an NSTextView that’s working in that it Scrolls ok vertically, but If I have a long line, it wraps instead of clipping the line and allowing Horizontal Scrolling. I’ve looked at the properties of the ScrollView and the underlying TextView but I can see no option to have it truncate lines, whereas AFAIR, this option is present in a NSTextField. I’ve got Show H Scroller, Show V Scroller and Automatically Hide Scroller all set to ON.
>
> This is a non-editable field, grows as much as it can using auto layout, but after that if the lines are too long, I want to be able to scroll horizontally.
>
> Is this possible using an NSTextView? If not, what is there another control I can use to get this effect?
>
> 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


References: 
 >NSTextView Question (From: Dave <email@hidden>)

  • Prev by Date: NSTextView Question
  • Next by Date: Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
  • Previous by thread: NSTextView Question
  • Next by thread: Re: NSTextView Question
  • Index(es):
    • Date
    • Thread