mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:01:22 +00:00
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:
parent
47beac49d9
commit
e4c31a3a38
1 changed files with 2 additions and 34 deletions
|
@ -356,41 +356,9 @@ static NSFont *leafFont;
|
||||||
[controlView unlockFocus];
|
[controlView unlockFocus];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
- (BOOL) isOpaque
|
||||||
* Editing Text
|
|
||||||
*/
|
|
||||||
- (void) editWithFrame: (NSRect)aRect
|
|
||||||
inView: (NSView *)controlView
|
|
||||||
editor: (NSText *)textObject
|
|
||||||
delegate: (id)anObject
|
|
||||||
event: (NSEvent *)theEvent
|
|
||||||
{
|
{
|
||||||
NSPoint location = [controlView convertPoint: [theEvent locationInWindow]
|
return YES;
|
||||||
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];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue