Re: NSResponder
Re: NSResponder
- Subject: Re: NSResponder
- From: Ryan Stevens <email@hidden>
- Date: Tue, 23 Sep 2003 06:48:02 -0700
On Tuesday, September 23, 2003, at 02:01 AM, Daniel Todd Currie wrote:
>
I'm trying to get my app to respond to a press or release of the
>
command key alone. I've subclassed NSResponder as follows:
>
>
CmdResponder.h:
>
>
@interface CmdResponder : NSResponder
>
{
>
}
>
- (void)flagsChanged:(NSEvent *)theEvent;
>
@end
>
>
>
CmdResponder.m:
>
>
@implementation CmdResponder
>
- (BOOL)acceptsFirstResponder
{
return YES;
}
>
- (void)flagsChanged:(NSEvent *)theEvent
>
{
>
NSLog(@"responder active");
>
}
>
>
This is obviously just a simple test, but from here I can work the
>
rest out. However, the @"responder active" message never appears in
>
the run log. I've never done much with responders and this seems to
>
be exactly how it is done in the DotView example (for mouse clicks).
>
Any tips?
>
>
Thanks.
>
:-)
_______________________________________________
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.
References: | |
| >NSResponder (From: Daniel Todd Currie <email@hidden>) |