Added new NSResponder method declarations and implemented shouldBeTreatedAsInkEvent:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21238 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2005-05-20 12:31:42 +00:00
parent 48cb9c3f15
commit 22fd51937f
7 changed files with 66 additions and 0 deletions

View file

@ -3429,6 +3429,20 @@ resetCursorRectsForView(NSView *theView)
}
}
- (BOOL) shouldBeTreatedAsInkEvent: (NSEvent *)theEvent
{
NSView *v;
v = [_wv hitTest: [theEvent locationInWindow]];
if (![self isMainWindow])
{
return (v != _wv);
}
else
{
return [v shouldBeTreatedAsInkEvent: theEvent];
}
}
- (BOOL) tryToPerform: (SEL)anAction with: (id)anObject
{