Re: How to prevent redrawing window when resized
Re: How to prevent redrawing window when resized
- Subject: Re: How to prevent redrawing window when resized
- From: Vojtěch Meluzín <email@hidden>
- Date: Wed, 02 Nov 2011 21:39:16 +0100
> What you’re seeing is definitely not normal behavior. Either it’s an
> artifact of the unusual way your app is structured (is this happening
> within that modal panel?), or you’re doing something unusual when drawing
> your view. How are you doing the drawing? You should just need to override
> -drawRect: and do your drawing in that. Are you making drawing calls
> elsewhere, or calling window or view methods to force immediate display?
>
> —Jens
>
It's happening with the modal window. It contains a single view, which is
very simple, just overrides stuff for mouse/keyboard input and drawRect for
painting. It is then used to get CGContextRef for drawing. I tried to
remove all NSView setNeedsDisplayInRect used to "invalidate" and NSView
displayIfNeeded for "immediate updating", but it didn't help, it still does
the same thing.
Vojtech
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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