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
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
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