Re: white screen windows at first
Re: white screen windows at first
- Subject: Re: white screen windows at first
- From: Bill Appleton <email@hidden>
- Date: Mon, 26 Apr 2010 15:10:56 -0700
i added flush window to the drawRect method -- no help
it IS calling draw rect right before the window is shown & then you see it
--- all white
thx
bill
On Mon, Apr 26, 2010 at 2:47 PM, Paul Sanders <email@hidden>wrote:
> It sounds like [NSWindow flushWindow] isn't getting called.
> Nothing is sent to the window server until that happens. In a
> 'normal' Cocoa app, this is taken care of in the event loop but
> in your case that evidently isn't happening. It might be good
> enough just to call it at the end of your drawRect: method, but
> calling it too often hurts performance and, depending on exactly
> what is being drawn when, can cause 'screen flash'.
>
> Paul Sanders.
>
> ----- Original Message -----
> From: "Bill Appleton" <email@hidden>
> To: "cocoa-dev list" <email@hidden>
> Sent: Monday, April 26, 2010 10:35 PM
> Subject: white screen windows at first
>
>
> hi all,
>
> when my windows are first shown there is no drawing inside, they
> are white
>
> but when i slowly move the mouse over to the close box and the
> close box
> responds to the mouse hover suddenly they draw their content
> properly
>
> does this ring any bells with people? i'm not sure where to look
> in the docs
> for this one
>
> i have properly subclassed the NSView and the drawRect message
> is working...
> do i need to do something else when I first show a window?
>
> thanks,
>
> bill appleton
>
>
>
>
_______________________________________________
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