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
- Add an UITextView
- Drag an outlet from it to your class
- Make this class implement UITextViewDelegate
- 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.
1 Comment
VYT
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.