0

I need to get text from text files and put it in a non-editable NSTextView. How can I accomplish this?

2

1 Answer 1

2
  1. Load the file into an NSString.
  2. Set the NSTextView's string to the loaded string (hint: NSTextView is a subclass of NSText).
  3. Ship BetterTextEditor.app and profit.

Prerequisite: Look up the needed methods in the two API reference documents I linked in the steps above.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.