[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Fix: NSControl.m, -mouseDown:
From:
Georg Fleischmann
Subject:
Fix: NSControl.m, -mouseDown:
Date:
Fri, 7 Jun 2002 20:14:51 GMT
Hi,
here is another patch to make continuous buttons/controls work.
I just switched the if/else, so the NSPeriodicMask is set for continuous cells.
Georg
2002年06月07日 Georg Fleischmann
* gui/Source/NSControl.m [NSControl -mouseDown:]:
set NSPeriodicMask for continuous cells, and 0 otherwise
*** gui/Source/NSControl.m.old Fri Apr 12 23:06:50 2002
--- gui/Source/NSControl.m Fri Jun 7 20:35:52 2002
***************
*** 505,513 ****
}
if ([_cell isContinuous])
- oldActionMask = [_cell sendActionOn: 0];
- else
oldActionMask = [_cell sendActionOn: NSPeriodicMask];
[_window _captureMouse: self];
--- 505,513 ----
}
if ([_cell isContinuous])
oldActionMask = [_cell sendActionOn: NSPeriodicMask];
+ else
+ oldActionMask = [_cell sendActionOn: 0];
[_window _captureMouse: self];
- Fix: NSControl.m, -mouseDown:,
Georg Fleischmann <=