Notification when control was changed

I’m looking for the handler that sends a notification when text is changed in a combo box. In Ass I used:
on changed theObject

These handlers all seem to post the notification either clicking into the control or exiting the control or clicking Enter on keyboard…

controlTextDidBeginEditing_(sender)
controlTextDidChange_(sender)
controlTextDidEndEditing_(sender)

I’m looking for when a single letter is typed into the control to verify if the contents is available at that point.

Thanks,

controlTextDidChange_ works for me:

	on controlTextDidChange_(sender)
		log "click"
	end controlTextDidChange_

Still no go here. Only getting a click when hitting enter, return key or leaving the control… Just to make sure - you type a single letter and it logs a “click”. So if you typed FLAME you will have 5 “click” logged?

Here is my script:

script Post_NotificationAppDelegate
property parent : class “NSObject”

on controlTextDidChange_(sender)
	log "click"
end controlTextDidChange_

on applicationWillFinishLaunching_(aNotification)
end applicationWillFinishLaunching_

on applicationShouldTerminate_(sender)
	return true
end applicationShouldTerminate_

end script

and I control dragged from a NSComboBox to the controlTextDidChange_(sender) handler. Is there anything else left to do? OS 10.6.2 using Xcode 3.2.1

That’s where you are going wrong. Break that connection. What you need to do is make the script instance the delegate of the combo box. Contol-click on the combo box, and in the HUD box click in the circle next to delegate and drag over the blue cube representing the script.

That was the problem. Did not know that… Thanks Shane!!!