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 (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

Reply via email to