Added dummy implementation of [scrollWheel:].

Moved menu display code in [rightMouseDown:] to NSApplication.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10766 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-08-21 23:22:51 +00:00
parent 0632e24a64
commit eae31362e1

View file

@ -316,19 +316,9 @@
- (void) rightMouseDown: (NSEvent*)theEvent
{
if (_next_responder != nil)
{
return [_next_responder rightMouseDown: theEvent];
}
return [_next_responder rightMouseDown: theEvent];
else
{
// FIXME: This should be moved into NSApplication
NSMenu *menu = [NSApp mainMenu];
if (menu != nil)
[menu _rightMouseDisplay: theEvent];
else
return [self noResponderFor: @selector(rightMouseDown:)];
}
return [self noResponderFor: @selector(rightMouseDown:)];
}
- (void) rightMouseDragged: (NSEvent*)theEvent
@ -347,6 +337,12 @@
return [self noResponderFor: @selector(rightMouseUp:)];
}
- (void) scrollWheel: (NSEvent *)theEvent
{
// FIXME
NSLog(@"Sorry, currently no support for scroll wheel.");
}
/*
* Services menu support
*/