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!
Asked
Active
Viewed 122 times
1 Answers
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
-
I am actually new to this... I am sorry. – doglover129 Oct 30 '13 at 03:23
-
Also, that is not what I meant. I want the textview field within the app to show that. Not the text editor in xcode. – doglover129 Oct 30 '13 at 03:25
-
there should be a similar checkbox for the TextView object settings. – Brad Allred Oct 30 '13 at 03:27
-
I guess its not that simple. I updated my answer with a link to a better post. – Brad Allred Oct 30 '13 at 03:45