Some debugging code added for ignorant programmers like me :-|

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@11439 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Laurent Julliard 2001-11-20 16:49:30 +00:00
parent a76799770b
commit b90478951d

View file

@ -609,12 +609,16 @@ static BOOL done_editing;
if (view == nil) if (view == nil)
{ {
view = [super hitTest: [theEvent locationInWindow]]; view = [super hitTest: [theEvent locationInWindow]];
NSDebugMLog(@"Mousedown on view : %@, self : %@", view, self);
NSDebugLog(@"edit view : %@", edit_view);
/* Make sure we're selecting the proper view - must be a direct /* Make sure we're selecting the proper view - must be a direct
decendant of the edit_view */ decendant of the edit_view */
while (view != nil && view != self while (view != nil && view != self
&& view != edit_view && [view superview] != edit_view) && view != edit_view && [view superview] != edit_view)
{ {
view = [view superview]; view = [view superview];
NSDebugLog(@"superview... : %@", view);
} }
if (view == self && edit_view != self) if (view == self && edit_view != self)
{ {