text field edited calls

Hi All,

Now I am trying to have a handler called when Text is changed in a text field.

I found the method


and read :

“An NSTextField can be assigned a delegate, who is
then informed of delegate messages sent by the
window’s field editor, such as textShouldEndEditing:.”

but am getting confused how to implement this after trying a few things…

inching along, Rob

Add the following to the file you want to be the text field’s delegate.

	on controlTextDidEndEditing_(Notification)
		log "Notification ended editing"
	end controlTextDidEndEditing_

In IB, control-drag from the text field to the file’s instance and select delegate.

That’s Perfect.

I was close but left out the “(notification)”

Thanks Craig, Rob