Resizing controls on NSWindow with transparent background
Resizing controls on NSWindow with transparent background
- Subject: Resizing controls on NSWindow with transparent background
- From: Rolf <email@hidden>
- Date: Mon, 20 Oct 2003 23:41:42 +0200
Hi,
My app has a window with transparent background ([NSColor clearColor]), and a "curtain" consisting of a NSBox. The upper side of this NSBox can be dragged up and down by the user (simulating a real world "curtain").
Unfortunately a horizontal line sometimes appears a few pixels below or above the upper side of the NSBox. The horizontal line seems to be a remnant of previous NSBox upper side before it was resized (moved).
The following code is used to resize the NSBox (boxCurtain), and redraw windows content view + shadow:
[boxCurtain setFrameSize:sizeCurtain];
[[self window] invalidateShadow];
[[[self window] contentView] setNeedsDisplay:TRUE];
If the above code is not present I get large numbers of horizontal lines - it seems like one pr mouse delta. I have tried all sorts of window repainting but have so far been unable to remove the last rest of these horizontal lines.
Anybody have any good ideas ?
Thanks
/Rolf
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.