• 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
Text Field Formatting Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSFileWrapper serializedRepresentation
  • Next by Date: Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
  • Previous by thread: Re: NSFileWrapper serializedRepresentation
  • Next by thread: Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
  • Index(es):
    • Date
    • Thread