Added isOpaque method; removed old garbage editing stuff.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5212 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-11-16 23:46:58 +00:00
parent 47beac49d9
commit e4c31a3a38

View file

@ -356,41 +356,9 @@ static NSFont *leafFont;
[controlView unlockFocus];
}
/*
* Editing Text
*/
- (void) editWithFrame: (NSRect)aRect
inView: (NSView *)controlView
editor: (NSText *)textObject
delegate: (id)anObject
event: (NSEvent *)theEvent
- (BOOL) isOpaque
{
NSPoint location = [controlView convertPoint: [theEvent locationInWindow]
fromView: nil];
NSDebugLog(@" NSBrowserCell: editWithFrame --- ");
[_browserText _setCursorLocation: location];
[_browserText _setCursorVisibility: YES];
if ([[controlView window] makeFirstResponder: controlView])
NSDebugLog(@" NSBrowserCell: we are now first responder --- ");
[self drawInteriorWithFrame: aRect inView: controlView];
}
- (void) endEditing: (NSText *)textObject
{
[_browserText _setCursorVisibility: NO];
}
- (void) _handleKeyEvent: (NSEvent*)keyEvent
{
NSDebugLog(@" NSBrowserCell: _handleKeyEvent --- ");
[_browserText _handleKeyEvent: keyEvent];
// [self drawInteriorWithFrame: aRect inView: controlView];
return YES;
}
/*