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: Kem Tekinay <ktekinay@mactechnologies.com>
Date: Sun, 28 Dec 2008 23:29:49 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <eb8fc1930812282007q6c048bfbgbf4b8eb80ebee8@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thread-index: AclpbhXP68Ks3xpx8U+Q3XEx0kteLQ==
Thread-topic: Entering CR/LF into an EditField
User-agent: Microsoft-Entourage/12.15.0.081119
On 12/28/08 11:07 PM, "dda" <headspin@gmail.com> wrote:

> 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.

Yes, I understand why that would be the preferred behavior in most cases. In
mine, it's getting in the way.

OK, here's the deal: I'm creating a RegEx development app, one whose
features go beyond what I've found on other Mac apps. As such, a user may
have a legitimate reason to write a RegEx to, for example, replace all cr
with crlf, or vice-versa, and I want my app to faithfully display the sample
text and results. What's more, since I want the user to test for anomalies
too, so they may want to mix cr and lf and crlf in their sample text just to
make sure that their RegEx pattern gets it right, and I wouldn't want my app
to stand in their way.

So, now that you know the background and my "deeper motives" (:->), am I
doing it the only way possible? Based on the discussion so far, I think I
am, but I'm always open to ideas.

__________________________________________________________________________
Kem Tekinay                                                 (212) 201-1465
MacTechnologies Consulting                              Fax (914) 242-7294
http://www.mactechnologies.com                        Pager (917) 491-5546

  To join the MacTechnologies Consulting mailing list, send an e-mail to:
           mactechnologies_consulting-subscribe@yahoogroups.com









_______________________________________________
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>