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: Rosyna <email@hidden>
- Date: Sat, 28 Oct 2006 14:51:12 -0700
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:
This email sent to email@hidden