Re: How to make NSWindow redraw vacated rects "ifNeeded"?
Re: How to make NSWindow redraw vacated rects "ifNeeded"?
- Subject: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
- From: "Adam R. Maxwell" <email@hidden>
- Date: Sun, 8 Apr 2007 15:46:35 -0700
On Apr 8, 2007, at 15:37, Jerry Krinock wrote:
On 2007 Apr, 08, at 13:23, Andrew Farmer wrote:
As a general point, BTW, you should never need to call
setNeedsDisplay, display, or displayIfNeeded on view objects. (Only
exception is a view calling setNeedsDisplay on itself.) The view
should otherwise be able to do redraw management for itself.
Yes, I agree with that. When I first wrote the code, I only sent -
displayIfNeeded to the window, not the views. But the
setNeedsDisplay messages in fact do neither harm nor good. -
[NSWindow display], or the extra -orderFront, are the only things
that seem to do any good.
Did you try [[window contentView] setNeedsDisplay:YES]? You need to
tell the box's superview to redisplay, or else the displayIfNeeded
won't have any dirty rects to redraw (as far as I understand).
-- adam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden