mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:30:38 +00:00
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:
parent
48cb9c3f15
commit
22fd51937f
7 changed files with 66 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue