Correction for bug.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21772 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-10-05 01:17:10 +00:00
parent 0c864577da
commit 76af904f00
3 changed files with 29 additions and 25 deletions

View file

@ -1,3 +1,10 @@
2005-10-04 20:57 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormScrollViewAttributesInspector.m: In category
IBObjectAdditions, for editorClassName, return only
GormScrollViewEditor.
* GormCore/GormScrollViewEditor.m: Cleanup.
2005-09-29 19:38 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormConnectionInspector.m: Corrected resizing attributes in

View file

@ -38,14 +38,16 @@
- (NSString*) editorClassName
{
/*
if ([self documentView])
{
return [[self documentView] editorClassName];
}
else
{
*/
return @"GormScrollViewEditor";
}
/* } */
}
@end

View file

@ -78,30 +78,26 @@
{
BOOL onKnob = NO;
if ([parent respondsToSelector: @selector(selection)] &&
[[parent selection] containsObject: _EO])
{
IBKnobPosition knob = IBNoneKnobPosition;
NSPoint mouseDownPoint =
[self convertPoint: [theEvent locationInWindow]
fromView: nil];
knob = GormKnobHitInRect([self bounds],
mouseDownPoint);
if (knob != IBNoneKnobPosition)
onKnob = YES;
}
// if we are on one of our own knob, then this event should be processed
// by our parent (cause this is a resizing event)
{
if ([parent respondsToSelector: @selector(selection)] &&
[[parent selection] containsObject: _EO])
{
IBKnobPosition knob = IBNoneKnobPosition;
NSPoint mouseDownPoint =
[self convertPoint: [theEvent locationInWindow]
fromView: nil];
knob = GormKnobHitInRect([self bounds],
mouseDownPoint);
if (knob != IBNoneKnobPosition)
onKnob = YES;
}
if (onKnob == YES)
{
if (parent)
return [parent mouseDown: theEvent];
else
return [self noResponderFor: @selector(mouseDown:)];
}
}
if (onKnob == YES)
{
if (parent)
return [parent mouseDown: theEvent];
else
return [self noResponderFor: @selector(mouseDown:)];
}
if (opened == NO)
{
@ -109,7 +105,6 @@
return;
}
if ([[_EO hitTest: [theEvent locationInWindow]]
isDescendantOf: documentViewEditor])
{