Re: What is the best way to get events fired on keypress for an NSTextField?

2015-03-12 Thread Steve Mills
On Mar 12, 2015, at 12:15:32, Mike Abdullah wrote: > > Please don’t do that. NSTextField already provides such messaging to its > delegate: > > https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTextField_Class/index.html#//apple_ref/occ/instm/NSTextF

Re: What is the best way to get events fired on keypress for an NSTextField?

2015-03-12 Thread Mike Abdullah
> On 12 Mar 2015, at 17:46, Steve Mills wrote: > > On Mar 12, 2015, at 11:04:55, Patrick J. Collins > wrote: >> >> I hooked up an action from IB to my view controller, but I don't see an >> option for where to define what kind of action it is... So my problem >> is events are only being fire

Re: What is the best way to get events fired on keypress for an NSTextField?

2015-03-12 Thread Steve Mills
On Mar 12, 2015, at 11:04:55, Patrick J. Collins wrote: > > I hooked up an action from IB to my view controller, but I don't see an > option for where to define what kind of action it is... So my problem > is events are only being fired when a textfield stops being edited. I > would like it to

What is the best way to get events fired on keypress for an NSTextField?

2015-03-12 Thread Patrick J. Collins
I hooked up an action from IB to my view controller, but I don't see an option for where to define what kind of action it is... So my problem is events are only being fired when a textfield stops being edited. I would like it to fire anytime a key is pressed, What is the best way to do this curr