• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Screen not redrawing - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen not redrawing - SOLVED


  • Subject: Re: Screen not redrawing - SOLVED
  • From: Russ <email@hidden>
  • Date: Mon, 20 Oct 2008 11:20:02 -0700 (PDT)

Got it! Windows were getting inadvertently and indirectly created with NSBackingStoreRetained. Hadn't caught it because used backingLocation instead of backingType and got wished-for answer(2) from wrong call.  Presto all is cheerier and I plough ahead.



----- Original Message ----
From: Russ <email@hidden>
To: email@hidden
Sent: Monday, October 20, 2008 1:30:57 PM
Subject: Re: Screen not redrawing


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


__________________________________________________
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

  • Prev by Date: Re: Superscript attribute with CATextLayer
  • Next by Date: How to draw a Recessed Button Shadow
  • Previous by thread: Re: Question about tackling a project
  • Next by thread: How to draw a Recessed Button Shadow
  • Index(es):
    • Date
    • Thread