Hi Nikolaus, > still alive? (same question goes to me :)
:-) Nice to hear/read from you. It seems we are all still there (somewhere)! > NSWindow::drawRect:display: > does this really exist? Sorry, that was a typo! :-( I meant NSWindow::setFrame:display: > Anyways, what should a window draw? Only NSView and NSCell draw something. > So it draws its contentView because that can be defined in a NIB. > > Or this is a private method to draw the window decoration? There actually is a NSWindow::drawRect: method in the GNustep code. No idea when this is called (probably not related to my problem). My problem is rather anywhere here in the the sendEvent: method of NSWindow.m. case GSAppKitWindowResized: { NSRect newFrame; newFrame.size.width = [theEvent data1]; newFrame.size.height = [theEvent data2]; /* Resize events always move the frame origin. The new origin is stored in the event location field. */ newFrame.origin = [theEvent locationInWindow]; /* FIXME: For a user resize we should call windowWillResize:toSize: on the delegate. */ _frame = newFrame; newFrame.origin = NSZeroPoint; [_wv setFrame: newFrame]; [_wv setNeedsDisplay: YES]; if (_autosaveName != nil) { [self saveFrameUsingName: _autosaveName]; } [self _processResizeEvent]; [nc postNotificationName: NSWindowDidResizeNotification object: self]; break; } I don't understand yet where this newFrame.size.height = [theEvent data2]; comes from, but the height is wrong. And my guess is that the height of the window title bar is not subtracted!? Best wishes, Andreas
_______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep