The actual transfer happens in NSWindow makeFirstResponder. You should be able
to log the current and the future first responder in that method to see who is
requesting this. And if you run in a debugger and put a break point in this
method you might be even able to see where this call comes
One thing to try subclassing NSTextField to return NO to the NSResponder
-resignFirstResponder: where the default is YES.
On Tue, Mar 31, 2020 at 11:31 AM Andreas Höschler
wrote:
> Hi Fred,
>
> in the meanwhile I was able to test the
>
> - (void)mouseDown:(NSEvent *)theEvent
> {
>
Hi Fred,
in the meanwhile I was able to test the
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog(@"mouseDown ...");
[NSApp preventWindowOrdering];
[self highlight:YES];
NSEvent *mouseUpEvent = [[self window] nextEventMatchingMask:NSLeftMouseUpMask
untilDate:[NSDate
Hi Fred,
> The method preventWindowOrdering is a NOOP on GNUstep, so it won’t help you.
> Put if this is what helps you on MacOS then most likely your touch panel is
> stealing the focus. You should try to override canBecomeKeyWindow for that
> panel.
There is no designated touch panel. I
The method preventWindowOrdering is a NOOP on GNUstep, so it won’t help you.
Put if this is what helps you on MacOS then most likely your touch panel is
stealing the focus. You should try to override canBecomeKeyWindow for that
panel.
Hope this help,
Fred
> Am 30.03.2020 um 19:13 schrieb
Hi all,
>
>> Am 30.03.2020 um 15:19 schrieb Andreas Höschler :
>>
>> Hi Fred,
>>
>>> in NSButton you find this code:
>>>
>>>
>>> - (BOOL) acceptsFirstMouse: (NSEvent *)theEvent
>>> {
>>> return YES;
>>> }
>>>
>>>
>>> You will need to write a subclass to handle this different.
>>
>> Thanks
Sorry,
accidentally sent the email below before realizing that this code is skipped
when you click on button.
But that really makes me wonder where the text view is told to resign first
responder. :-(
Wolfgang
> Am 30.03.2020 um 17:02 schrieb Wolfgang Lux :
>
>
>
>> Am 30.03.2020 um 15:19
> Am 30.03.2020 um 15:19 schrieb Andreas Höschler :
>
> Hi Fred,
>
>> in NSButton you find this code:
>>
>>
>> - (BOOL) acceptsFirstMouse: (NSEvent *)theEvent
>> {
>> return YES;
>> }
>>
>>
>> You will need to write a subclass to handle this different.
>
> Thanks a lot for your response.
Hi Fred,
> in NSButton you find this code:
>
>
> - (BOOL) acceptsFirstMouse: (NSEvent *)theEvent
> {
> return YES;
> }
>
>
> You will need to write a subclass to handle this different.
Thanks a lot for your response. I created a subclass KbButton and overwrote
this method like so
-
Hi Andreas,
in NSButton you find this code:
- (BOOL) acceptsFirstMouse: (NSEvent *)theEvent
{
return YES;
}
You will need to write a subclass to handle this different.
Cheers,
Fred
> Am 25.03.2020 um 18:56 schrieb Andreas Höschler :
>
> Hi all,
>
> I am just trying to add a touch panel
Hi all,
I am just trying to add a touch panel keyboard feature to some GNUstep app,
meaning that I have added a bunch of NSButtons with titles "A", "B", "C",... to
the GUI of my app. My plan is to generate and send some key-event whenever a
user clicks (actually presses with his finger on a
11 matches
Mail list logo