Since some months i started experiencing with xcode and i am starting to enjoy it more and more! This site is a great support for me! Now i have a little problem but i can’t find any answer on the internet. So i would really appreiciate it if someone could help me :).
I’m working on a little application which does generate 20 lines of text.
Every line is in a variable line_1, line_2 and so on.
This is how i set the contents of the NStextView:
tell text view 1 of scroll view 1 of window 1 set contents to line_1 end tell
But the problem is that i can only set one line of text or all the lines behind each other with line_1 & line_2 & line_3 and so on.
If possible, this is what i would like to do (example):
set line_1 to “This is a little sample”
set line_2 to “Hopefully someone can help me”
set line_3 to “Some other line of text”
How can i get this outbut in the NSTextView:
This is a little sample
Hopefully someone can help me
Some other line of text
So every variable must be on a new line.
I hope you understand my problem, my english is not too good :).
All help is really appreciated, thanks in advance!