0

I have working program with Wrapping Text Fields, and I would like to add vertical scrolling. I have found that there is Text View object in xcode library and it has NSTextView in NSScrollView. The problems came when I simply tried to substitute Text Fields with Text View. First, when I made outlet, this outlet belongs to NSScrollView (no NSTextView), and NSScrollView doesn't have String type, which I need for working code. Second, when I deleted NSScrollView (I don't know if it was right to do this) and typed instead NSTextView in outlet, I could use type string, but code didn't work. What I did wrong, what should I do ?

1 Answer 1

2
  1. Add an UITextView
  2. Drag an outlet from it to your class
  3. Make this class implement UITextViewDelegate
  4. In code, set this text views delegate to this class It is really simple, I'm confused by steps you took to try to get it working.
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! I forgot to write that this was for OS X. I have found what was wrong, simple thing :), but I am quite new in Xcode and sometimes to understand simple steps in using this IDE is not straight forward. And, for OS X there are not so many explanations as for iOS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.