Re: Screen not redrawing
Re: Screen not redrawing
- Subject: Re: Screen not redrawing
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 18 Oct 2008 12:28:29 +0200
Le 18 oct. 08 à 05:50, Russ a écrit :
Check to make sure [window isFlushWindowDisabled] is NO and [window
isAutodisplay] is YES.
Yes, both OK.
Also, try dropping a standard control (e.g. a button) in and see if
it
redraws to the pressed state when you press it.
When I do this programmatically after creating the main window's
NSView, it scarfs up the bounding box of the succeeding views, not
sure why that is.
NSButton *xtra = [[NSButton alloc]
initWithFrame:NSMakeRect(0,0,100,20)];
[nuvu addSubview:xtra];
Try [NSWindow flushWindow] or flushWindowIfNeeded.
Had no effect. I think the window is already being flushed---
drawRect is being called
Also note, from the NSView docs:
"A view object can draw on-screen if it is not hidden, it is attached
to a view hierarchy in a window (NSWindow), and the window has a
corresponding window device. "
All 3 are confirmed OK (including isHiddenOrHasHiddenAncestor)
Still puzzled, but good set of questions.
My 2 cents. What is your window backing store type ? (What does
[myWindow backingType] return).
Using something else than Buffered may cause serious redraw glitch.
It should never append in standard Cocoa App as most of the window are
created in Inerface Builder which set buffered by default, but in your
case, it look like all windows are created by your UI Toolkit.
_______________________________________________
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