On 20 Aug 2014, at 11:33 am, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote:
> OS X 10.9.4 I have an NSTextField into which a user types digits. When a > digit is typed, I have it set up so the -controlTextDidChange: delegate > method is invoked. Now, in the delegate method I would like (depending on > circumstances) to cause the text field to behave like the user ended editing > to send its action message. Is this possible? The text field action is set to > “Sent on End Editing” in Xcode. I’ve noticed that at runtime that [tField > action] is null. Yes, it's possible. But note that during editing, you're actually use the Field Editor, not the control itself. So you need to get the action from the actual control, not the field editor. You might need to do work to track which field is being editied, if you can't infer it from properties of the field editor. --Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com