Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I get a notification each time a EditText control contents changes?



Hi Folks, 

I am trying to hook into an EditText Control (Unicode) -- actually, in this
case a Search Field.

I would like to get a notification each time the text field changes (either
due to typing/cut/paste/clicking on the little (x), etc.).

I have already hooked into the kControlEditTextKeyFilterTag, but this
doesn't handle all the cases, and it occurs before the field is updated.

I would like to get it after the field has been updated. I tried to install
a Carbon event handler for
    { kEventClassControl, kEventControlValueFieldChanged}

on the control, but it does not fire, even though I see the event if I run
the program with EventDebug set in the environment.

Any other possibilities that anyone can recommend?

TIA,

B.J. Buchalter

Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.