bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #25385] crash in [GSToolTips mouseEntered:] called from [NSWindow _


From: Doug Simons
Subject: [bug #25385] crash in [GSToolTips mouseEntered:] called from [NSWindow _checkTrackingRectangles:forEvent:]
Date: Sat, 31 Jan 2009 01:05:19 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

Follow-up Comment #7, bug #25385 (project gnustep):

Unfortunately that doesn't seem to have solved the problem. Here's the entire
code of our setImage: method in case it might help:

- (void) setImage: (NSImage *) anImage {
    [[self internalImageView] setImage: anImage];

    if (anImage) {
        [self setupInternalViews];
        [self setToolTip:[NSString stringWithFormat:@"Image Size: %d x
%d",(int)[anImage size].width,(int)[anImage size].height]];
        }
}

Our internalImageView is an NSImageView that is our subview which actually
displays the image. It is only created once. 

Our setupInternalViews method just sizes and positions the internalImageView
and another subview. The only part of that method that seems like it might
have a bearing on this reads:
        [[self internalImageView] setFrame:innerBounds];
        [[self internalImageView] setImageScaling:NSScaleProportionally];
        [[self internalImageView] setImageAlignment:NSImageAlignCenter];

I don't see any likely culprits there. Our custom image view is loaded as a
Custom View object within a nib file. I suppose it's possible that is related
to the problem although it seems like a bit of a stretch since the tooltip
works at first (and our image isn't set until later).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25385>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]