mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Tiny optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4250 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
78d19303e0
commit
fd3f6f5899
1 changed files with 3 additions and 1 deletions
|
@ -102,6 +102,7 @@ static SEL ccSel = @selector(_checkCursorRectangles:forEvent:);
|
|||
static SEL ctSel = @selector(_checkTrackingRectangles:forEvent:);
|
||||
static IMP ccImp;
|
||||
static IMP ctImp;
|
||||
static Class responderClass;
|
||||
|
||||
//
|
||||
// Class methods
|
||||
|
@ -114,6 +115,7 @@ static IMP ctImp;
|
|||
[self setVersion: 2];
|
||||
ccImp = [self instanceMethodForSelector: ccSel];
|
||||
ctImp = [self instanceMethodForSelector: ctSel];
|
||||
responderClass = [NSResponder class];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1040,7 +1042,7 @@ static IMP ctImp;
|
|||
if (first_responder == aResponder)
|
||||
return YES;
|
||||
|
||||
if (![aResponder isKindOfClass: [NSResponder class]])
|
||||
if (![aResponder isKindOfClass: responderClass])
|
||||
return NO;
|
||||
|
||||
if (![aResponder acceptsFirstResponder])
|
||||
|
|
Loading…
Reference in a new issue