mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
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:
parent
0c864577da
commit
76af904f00
3 changed files with 29 additions and 25 deletions
|
@ -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
|
||||
|
|
|
@ -38,14 +38,16 @@
|
|||
|
||||
- (NSString*) editorClassName
|
||||
{
|
||||
/*
|
||||
if ([self documentView])
|
||||
{
|
||||
return [[self documentView] editorClassName];
|
||||
}
|
||||
else
|
||||
{
|
||||
*/
|
||||
return @"GormScrollViewEditor";
|
||||
}
|
||||
/* } */
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue