Re: Making a NSFormatter receive special keys
Re: Making a NSFormatter receive special keys
- Subject: Re: Making a NSFormatter receive special keys
- From: Douglas Davidson <email@hidden>
- Date: Fri, 23 Aug 2002 11:26:07 -0700
On Friday, August 23, 2002, at 10:28 AM, Clark S. Cox III wrote:
Is there a proper way to make a NSFormatter connected to a text editor
receive special keys like F1, up arrow, etc... When the user presses
them?
No, NSFormatters simply format and validate whatever is contained
inside
a control/cell, they don't ever directly get the keys that the user is
pressing, that is the control/cell's job.
Yes, it would usually be the job of the control or text view's delegate
instead, via such methods as
- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView
doCommandBySelector:(SEL)commandSelector;
Douglas Davidson
_______________________________________________
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.