Re: NSTextDidChangeNotification reporting wrong object
Re: NSTextDidChangeNotification reporting wrong object
- Subject: Re: NSTextDidChangeNotification reporting wrong object
- From: Matt Neuburg <email@hidden>
- Date: Fri, 22 Sep 2006 07:42:16 -0700
- Thread-topic: NSTextDidChangeNotification reporting wrong object
On Fri, 22 Sep 2006 15:52:19 +0200, Michele Balistreri
<email@hidden> said:
>Here is my problem:
>
>I have a form, with 2 NSTextViews. At each keystroke i need to do a
>check so the first thing i tried was setting a delegate object and
>implementing the textDidChange: method but for some reason it wasn't
>called.
>
>I then tried registered for the notification, this worked..kind of.
>Basically the method gets called correctly each time a keystroke
>happens but the sender object of the notification is always the same
>and is neither of the 2 NSTextViews.
>
>
>Any hint? Thank you
I'm going to guess that when you say NSTextView, you're lying, and that you
mean NSTextField. Based on that assumption, the answer is that what's
changing is the Field Editor (the NSTextView that magically appears in front
of an NSTextField when it's being edited). Consult the online documentation
to read all about the Field Editor. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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