realbasic-nug
[Top] [All Lists]

Re: Entering CR/LF into an EditField

To: "REALbasic NUG" <realbasic-nug@lists.realsoftware.com>
Subject: Re: Entering CR/LF into an EditField
From: dda <headspin@gmail.com>
Date: Mon, 29 Dec 2008 12:07:51 +0800
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=/EWZAwgYOaMy5Ltkjis+0hS43Jb8lOb2mYzmlZbHWLI=; b=DGAJo2YrqxM+msRm/n80SQAf28eHZk08Vy1o2BEny8Unlf5ANOmzFC4X6ZP/uMFdxb 1SdVm0cz0WV30K9GFjp0ufj4iM8HpEo4/BPtQtVmYanAcRZFaMH89KbSxRWQzs/2f+Hh YsDGo7PZPUqq+DVP7HOtJ7UuIdzZugRe5jgUg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kcPtnQDoc4h2HG39Jyn+ohakbzeelamwLZTUHhMv/W4LO98yTo48OmQIDkCnzjHW39 mEEGOyACy4gNN0YIV3NH5arlriRYhBSf80skZfFrCa4gdwvsbo02BA6u1UWgC7QsarLC jd9Q9m4Xzt8UMkzQnb9T/IQ/Ht+q/Qu4BCmi8=
In-reply-to: <DF0394D1-B112-4610-B345-935E3F3CDD3A@shaw.ca>
References: <C57DB013.1C199%ktekinay@mactechnologies.com> <DF0394D1-B112-4610-B345-935E3F3CDD3A@shaw.ca>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
It is indeed preserved -- I checked in a sample app -- but on the
surface, like Terry, I can't see the point. But then again, I am not
watching Kem's code, and Kem may have deeper motives.

However, on a display level, crlf is a 'doze thing, and means ONE line
break. So technically, there shouldn't be the need for two line
breaks. That's the reason the EditField converts crlf to cr on the
Mac.


-- 
dda



On Mon, Dec 29, 2008 at 11:49 AM, Terry Ford <tmford@shaw.ca> wrote:
>
> On Dec 28, 2008, at 7:37 PM, Kem Tekinay wrote:
>
>> On 12/28/08 10:19 PM, "dda" <headspin@gmail.com> wrote:
>>
>>> Or do you want to display tag-like characters that indicate what is
>>> what, as in BBEdit's "show invisibles"?
>>
>> It's a fair question, but, in this case, I simply want the characters to
>> be
>> present. I have another field that will display statistics like decimal,
>> hex
>> and octal values, of the characters in the field. But if my original
>> string
>> variable contains a crlf, I want the EditField to contain the same.
>
> Why? What is this magic difference you expect to be preserved?
>
> T.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>