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 <d...@looktowindward.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com