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\r\nText to add" > > The result is not what I expected ... \r\n\r\n appears in the text. > > How does one get crlf into a UITextView?
Why don’t you just let the text view store the text in its native format w.r.t line endings, and just convert to-from CRLF on import and export? Charles_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com