0

I am trying to make a basic text editor (For a School Project if you are wondering) and I want to make it work with different code. The problem is that I cant get TextView to go on forever horizontally. Similar to Notepad++. I have set it to have the ability scroll horizontally, but I cannot seem to make the text keep going on one line. This is for a Mac OS X application and I am using Xcode 5. Also, on a side note, if you by chance know how to number the rows, I would greatly appreciate that as well. Thank you!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
doglover129
  • 3
  • 1
  • 5

1 Answers1

1

Menu option: Xcode->Preferences

From there go to the "Text Editing" tab and check the box for "Line numbers" then in the Indentation subtab uncheck the box for "line wrapping"

To disable word wrap on an NSTextView see this SO answer

Community
  • 1
  • 1
Brad Allred
  • 7,323
  • 1
  • 30
  • 49