On Fri, Mar 26, 2010 at 9:37 AM, David Dunham
<email@hidden> wrote:
On 25 Mar 2010, at 20:56, dileep verma wrote:
> I have an edit box which should not accept special characters. I am able to
> filter these special character once if you are typing it using keyboard but
> if some copying and pasting any special character from anywhere, he is able
> to paste it.
OK, that's a better requirement.
And what happens if you use Edit > Special Characters, and then insert a special character? (Actually that may also be kEventTextInputUnicodeForKeyEvent and you're handling it.)
I think you want to handle kEventClassTextField / kEventTextShouldChangeInRange.
Efficiency is intelligent laziness.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to
email@hidden