Re: add crlf to UITextView
Re: add crlf to UITextView
- Subject: Re: add crlf to UITextView
- From: Charles Srstka <email@hidden>
- Date: Wed, 25 May 2011 14:50:11 -0500
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 (email@hidden)
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:
This email sent to email@hidden