mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
* Palettes/2Controls/GormSliderAttributesInspector.m: Cleaned up
code to use NSOnState and NSOffState properly, since we can't depend on them always reflecting YES and NO respectively. * Palettes/3Containers/GormTableViewAttributesInspector.m: Corrected call in ok: to use enclosingScrollView instead of simply getting the superview of the table. This corrects bug#22333. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26076 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
efe1aa64f3
commit
053d911cfe
3 changed files with 17 additions and 8 deletions
|
@ -1,3 +1,12 @@
|
|||
2008-02-16 20:54-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/2Controls/GormSliderAttributesInspector.m: Cleaned up
|
||||
code to use NSOnState and NSOffState properly, since we can't depend
|
||||
on them always reflecting YES and NO respectively.
|
||||
* Palettes/3Containers/GormTableViewAttributesInspector.m:
|
||||
Corrected call in ok: to use enclosingScrollView instead of
|
||||
simply getting the superview of the table. This corrects bug#22333.
|
||||
|
||||
2008-02-09 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* GormCore/GormGenericEditor.m ([GormGenericEditor -refreshCells]):
|
||||
|
|
|
@ -79,15 +79,15 @@
|
|||
}
|
||||
else if ( sender == stopOnTicksSwitch )
|
||||
{
|
||||
[object setAllowsTickMarkValuesOnly: [stopOnTicksSwitch state]];
|
||||
[object setAllowsTickMarkValuesOnly: (([stopOnTicksSwitch state] == NSOnState) ? YES:NO)];
|
||||
}
|
||||
else if ( sender == continuousSwitch )
|
||||
{
|
||||
[object setContinuous: [continuousSwitch state]];
|
||||
[object setContinuous: (([continuousSwitch state] == NSOnState) ? YES : NO)];
|
||||
}
|
||||
else if ( sender == enabledSwitch )
|
||||
{
|
||||
[object setEnabled: [enabledSwitch state]];
|
||||
[object setEnabled: (([enabledSwitch state] == NSOnState) ? YES : NO)];
|
||||
}
|
||||
else if (sender == altIncrementForm)
|
||||
{
|
||||
|
@ -116,9 +116,9 @@
|
|||
[[valuesForm cellAtIndex: 2] setDoubleValue: [object maxValue]];
|
||||
[[valuesForm cellAtIndex: 3] setIntValue: [object numberOfTickMarks]];
|
||||
|
||||
[continuousSwitch setState: [object isContinuous]];
|
||||
[enabledSwitch setState: [object isEnabled]];
|
||||
[stopOnTicksSwitch setState: [object allowsTickMarkValuesOnly]];
|
||||
[continuousSwitch setState: ([object isContinuous] ? NSOnState : NSOffState)];
|
||||
[enabledSwitch setState: ([object isEnabled] ? NSOnState : NSOffState)];
|
||||
[stopOnTicksSwitch setState: ([object allowsTickMarkValuesOnly] ? NSOnState : NSOffState)];
|
||||
|
||||
[[altIncrementForm cellAtIndex: 0] setDoubleValue:
|
||||
[[object cell] altIncrementValue]];
|
||||
|
|
|
@ -66,8 +66,8 @@
|
|||
BOOL isScrollView;
|
||||
id scrollView;
|
||||
|
||||
scrollView = [[object superview] superview];
|
||||
isScrollView = [ scrollView isKindOfClass: [NSScrollView class]];
|
||||
scrollView = [object enclosingScrollView];
|
||||
isScrollView = [scrollView isKindOfClass: [NSScrollView class]];
|
||||
|
||||
/* Selection */
|
||||
if ( sender == multipleSelectionSwitch )
|
||||
|
|
Loading…
Reference in a new issue