Re: add crlf to UITextView

2011-05-25 Thread Greg Guerin
koko wrote: I had changed the string I was appending to @"\n\nText to Add" which also did not work. You need to identify whether your string is a literal string in your Objective-C source, or whether it's something loaded from somewhere else. If it's loaded from somewhere else, you nee

Re: add crlf to UITextView

2011-05-25 Thread Charles Srstka
On May 25, 2011, at 1:10 PM, koko wrote: > I have set the text property of myUITextView. Now I want to add more text > that is preceded by a crlf. I do this: > > m_notes.text = [m_notes.text stringByAppendingString:[m_backing > objectAtIndex:index]]; > > where objectAtIndex:index is @"\r\n\

Re: add crlf to UITextView

2011-05-25 Thread koko
Thank you, Phillip. I used your example exactly. I had changed the string I was appending to @"\n\nText to Add" which also did not work. koko "Don't fight the framework." --Kyle Sluder On May 25, 2011, at 1:23 PM, Phillip Mills wrote: > On 2011-05-25, at 2:10 PM, koko wrote: >> >> How does

Re: add crlf to UITextView

2011-05-25 Thread Phillip Mills
On 2011-05-25, at 2:10 PM, koko wrote: > > How does one get crlf into a UITextView? I've put things on a new line by doing essentially: m_notes.text = [m_notes.text stringByAppendingFormat:@"\n\n%@", [m_backing objectAtIndex:index]]; At which point, the object would be @"Text to add". I'm not

add crlf to UITextView

2011-05-25 Thread koko
I have set the text property of myUITextView. Now I want to add more text that is preceded by a crlf. I do this: m_notes.text = [m_notes.text stringByAppendingString:[m_backing objectAtIndex:index]]; where objectAtIndex:index is @"\r\n\r\nText to add" The result is not what I expected ... \