Re: limit text input in NSTextView
Re: limit text input in NSTextView
- Subject: Re: limit text input in NSTextView
- From: Sherm Pendley <email@hidden>
- Date: Mon, 16 Sep 2002 14:18:59 -0400
On Monday, September 16, 2002, at 02:05 PM, Marco Binder wrote:
subclass NSTextView and do nothing but override NSResponders
-(void)keyUp:(NSEvent*)event method. If the NSEvent4s
- (NSString*) characters method gives you an "allowed" character, just
pass the event to super, otherwise ignore it.
Never tried, but could work I guess.
That doesn't sound very reliable. Wouldn't it allow the user to paste in
invalid characters, or for system services or an AppleScript macro to
insert them?
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.