From da416a062ddceab58933e77e65390f4f47022b9f Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Sat, 3 May 2008 20:57:53 +0000 Subject: [PATCH] Add old NeXT method, no longer present, but needed for backward compatibility. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26487 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSControl.m | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index e853b0ff5..71cb87ca1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-03 Fred Kiefer + + * Source/NSControl.m (-mouseDownFlags): Add old NeXT method, no + longer present, but needed for backward compatibility. + 2008-05-03 Fred Kiefer * Source/NSTableView.m (-selectRow:byExtendingSelection:, diff --git a/Source/NSControl.m b/Source/NSControl.m index 8d4cb4155..061273855 100644 --- a/Source/NSControl.m +++ b/Source/NSControl.m @@ -920,6 +920,15 @@ static NSNotificationCenter *nc; _ignoresMultiClick = flag; } +/**

Returns the mouse flags. This flags are usally sets in + the NSCell-trackMouse:inRect:ofView:untilMouseUp: method.

+

This is a NeXTStep 3.3 method, no longer officially supported.

+ */ +- (int) mouseDownFlags +{ + return [[self selectedCell] mouseDownFlags]; +} + /* * NSCoding protocol */