Re: override NSTextField paste behavior

2016-03-28 Thread Rick C.
Sorry for the delay I’m working on this thanks for the help! :-) > On 25 Mar 2016, at 12:55 PM, dangerwillrobinsondan...@gmail.com wrote: > > > What Ken is saying is use an NSFormatter > It really should have been named something like NSValidator or inherited from > something like that to mak

Re: override NSTextField paste behavior

2016-03-24 Thread dangerwillrobinsondanger
What Ken is saying is use an NSFormatter It really should have been named something like NSValidator or inherited from something like that to make it clear that it's for that. It allows you to alter the input, accept it as is or reject it and you should present a sheet (or some other means) wit

Re: override NSTextField paste behavior

2016-03-24 Thread Ken Thomases
On Mar 24, 2016, at 9:29 PM, Rick C. wrote: > > I have an NSPanel with 2 NSTextFields and my controller is the delegate of > the panel. I want to override the paste behavior of the 2 text fields so > that the user doesn’t paste unnecessary spaces and other characters into > these fields. Is

override NSTextField paste behavior

2016-03-24 Thread Rick C.
Hi, I have an NSPanel with 2 NSTextFields and my controller is the delegate of the panel. I want to override the paste behavior of the 2 text fields so that the user doesn’t paste unnecessary spaces and other characters into these fields. I thought this should be easy enough but cannot find a