* 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:
Gregory John Casamento 2008-02-17 01:57:01 +00:00
parent efe1aa64f3
commit 053d911cfe
3 changed files with 17 additions and 8 deletions

View file

@ -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]):

View file

@ -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]];

View file

@ -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 )