Text Field Formatting Problem
Text Field Formatting Problem
- Subject: Text Field Formatting Problem
- From: Dave <email@hidden>
- Date: Mon, 04 Apr 2016 12:01:21 +0100
Hi,
This is on a Mac using Auto Layout.
I have an NSScrollView which contains a Clip View which in turn contains an NSTextView.
The data I wish to display is formatted as so:
The first long line of a number of lines that I’d like to wrap to the bounding rect of the next field.
The second long line of a number of lines that I’d like to wrap to the bounding rect of the next field.
The Nth long line of a number of lines that I’d like to wrap to the bounding rect of the next field.
However, when I run this, the text is not wrapped, but rather the field is Scrolled all the way to the right and the Horizontal Scroller is showing. I’ve tried switching off the Horizontal Scroller but the text is still not wrapped as expected. However if I resize the window, then wraps it correctly, so it looks like I need to initialise something….
The Scroll View is in an NSStackView if this has any bearing?
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