Re: Screen not redrawing
Re: Screen not redrawing
- Subject: Re: Screen not redrawing
- From: Russ <email@hidden>
- Date: Mon, 20 Oct 2008 10:30:57 -0700 (PDT)
Still having trouble getting my screen redraw to come to life. Very odd---
1) The window title bar isn't getting redrawn right either when a different app's menu steps on it.
2) If I use the normal NSView instead of my subclassed version, still doesn't work.
3) If I replace my subclassed drawRect with a simple fill-rectangle routine (using bounds) that increments the color each time it is drawn, then I see that a) my drawRect isn't the problem, and b) when I resize the window, I'm getting plenty of redraws in the portion being expanded with the new color, but the rest of the window interior is not changing.
4) Switched to compile/run 32-bit instead of 64-bit, no change.
Is a delegate for NSApp required? Haven't set one up yet. There must be some requirement that is tripping me up.
Answers to earlier postings:
> Check to make sure [window isFlushWindowDisabled] is NO and [window isAutodisplay] is YES.
Yes
> Also, try dropping a standard control (e.g. a button) in and see if it redraws to the pressed state when you press it.
No, stone cold dead. Some issues I'd seen initially on that were minor support-code glitches due to as-yet-unimplemented functionality.
>Try [NSWindow flushWindow]
No effect
> This is another common symptom of using 'rect' as the view's bounds. Are you *sure* 100% positively that you are ignoring this?
Yes, never makes it out of the drawRect routine --- which is just a call to the drawing routine which does the whole view. The rect looks to be the full view most of the time anyway.
> What is your window backing store type ? (What does [myWindow backingType] return).
Buffered
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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