|Subject:||Re: Touch panel keyboard in GNUstep app|
|Date:||Tue, 31 Mar 2020 11:30:53 +0000 (UTC)|
in the meanwhile I was able to test the
- (void)mouseDown:(NSEvent *)theEvent
NSEvent *mouseUpEvent = [[self window] nextEventMatchingMask:NSLeftMouseUpMask untilDate:[NSDate distantFuture] inMode:NSEventTrackingRunLoopMode dequeue:YES];
NSPoint mouseLocation = [self convertPoint:[mouseUpEvent locationInWindow] fromView:nil];
BOOL mouseUpInside = [self mouse:mouseLocation inRect:[self bounds]];
if ([self target]) [[self target] performSelector:[self action] withObject:self];
code fragment (NSButton subclass) on GNUstep. And as expected it does not work there. So I am still looking for a solution ...
Do you know which part in the GNustep source tree resigns fist responder from a currently active control and transfers it to a clicked button? I got somehow lost in the event handling code.
Thanks a lot,
|[Prev in Thread]||Current Thread||[Next in Thread]|