Re: Stripping newlines/blanks when pasting on an NSTextField
Re: Stripping newlines/blanks when pasting on an NSTextField
- Subject: Re: Stripping newlines/blanks when pasting on an NSTextField
- From: Michele Balistreri <email@hidden>
- Date: Sun, 29 Oct 2006 00:05:51 +0200
Hi, thank you for your help, i know how to remove characters from a
string, my problem was giving them instant feedback of what has been
done, say they paste 2 lines, they should be directly displayed as
one in the field. That is possible only with formatters, or there are
some special options of NSTextField?
Regards,
Michele Balistreri
Il giorno 28/ott/06, alle ore 23:51, Rosyna ha scritto:
Most of the time (in my experience) users only have leading or
trailing whitespace that needs to be remove when pasting into text
fields due to Cocoa's silly text selection "rules".
Since, in our example, they're pasting in codes from emails, all we
worry about is the trailing and leading whitespace. Of course, YMMV.
Ack, at 10/28/06, I. Savant said:
I'm still seeing a problem, though: You're trimming only the
ends, but what about the middle? What if the user copies a few
paragraphs from a text editor and pastes it here?
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40briksoftware.com
This email sent to email@hidden
Regards,
Michele Balistreri
brik. Lead programmer.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden