mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Added a little private method to allow implentation of NSTextView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8393 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1133bd649a
commit
62797f6331
1 changed files with 13 additions and 2 deletions
|
@ -2036,10 +2036,14 @@ resetCursorRectsForView(NSView *theView)
|
|||
if (![aResponder acceptsFirstResponder])
|
||||
return NO;
|
||||
|
||||
/* So that the implementation of -resignFirstResponder in
|
||||
_firstResponder might ask for what will be the new first
|
||||
responder by calling our method _futureFirstResponder */
|
||||
_futureFirstResponder = aResponder;
|
||||
|
||||
/*
|
||||
* If there is a first responder tell it to resign.
|
||||
* Change only if it replies Y
|
||||
*/
|
||||
* Change only if it replies Y */
|
||||
if ((_firstResponder) && (![_firstResponder resignFirstResponder]))
|
||||
return NO;
|
||||
|
||||
|
@ -3505,6 +3509,13 @@ resetCursorRectsForView(NSView *theView)
|
|||
|
||||
@end
|
||||
|
||||
@implementation NSWindow (GNUstepTextView)
|
||||
- (id) _futureFirstResponder
|
||||
{
|
||||
return _futureFirstResponder;
|
||||
}
|
||||
@end
|
||||
|
||||
BOOL GSViewAcceptsDrag(NSView *v, id<NSDraggingInfo> dragInfo)
|
||||
{
|
||||
NSPasteboard *pb = [dragInfo draggingPasteboard];
|
||||
|
|
Loading…
Reference in a new issue