Re: Strange NSView Redraw issue
Re: Strange NSView Redraw issue
- Subject: Re: Strange NSView Redraw issue
- From: Matt Neuburg <email@hidden>
- Date: Sun, 07 Jan 2007 08:36:48 -0800
- Thread-topic: Strange NSView Redraw issue
On Sat, 6 Jan 2007 23:01:42 -0700, Andrew Madsen
<email@hidden> said:
>I've got a preferences window based on the example here: http://
>johndevor.wordpress.com/2006/12/24/simple-preferences/ .
>
>For some reason, my general preferences pane (which is the biggest of
>the panes) doesn't properly redraw. When switching to the general
>pane from another pane, it seems as though only the portion of the
>general pane's view that would have been "within" the rect defined by
>the previous pane is drawn. Here is the code I'm using:
> // SNIP
> [activeContentView setNeedsDisplay: YES];
> [view setNeedsDisplay: YES];
If you tell the window to display (instead of setNeedsDisplay), does that
make a difference?
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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