• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen not redrawing


  • Subject: Re: Screen not redrawing
  • From: Graham Cox <email@hidden>
  • Date: Sat, 18 Oct 2008 10:39:21 +1100


On 18 Oct 2008, at 8:48 am, Russ wrote:

My app is drawing acceptably (for now) the first time, but the screen isn't updating after anything happens. I am calling setNeedsDisplay:YES on the affected NSViews and their drawRect routines are getting called, but it seems the results aren't being composited onto the screen subsequently. If I resize the window smaller and larger again, the exposed portion shows the correct portion. Just driving it with a few menu operations for now. I have a subclassed NSView but it is very minimal to store a little extra information and pass along the drawRect.

Anything else I'm missing that's needed to enable the new images to make it to the screen? I have a normal event loop NSApp run going, things would be going well if the redraws were visible. Thanks.


Are you mistaking the rect parameter to drawRect: for your view's bounds? Common mistake, and could easily produce the symptoms you describe.

However, if you were to actually, you know, post your code, the error could probably be spotted instantly.

Seems quite a few people here lately enjoy the game of "twenty questions". Enjoyable as that can be, it's possibly not the most efficient way to get problems identified. ;-)



hth,

Graham
_______________________________________________

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


References: 
 >Screen not redrawing (From: Russ <email@hidden>)

  • Prev by Date: Re: Notification on Login Items change?
  • Next by Date: Re: Cocoa / OC exception handling
  • Previous by thread: Re: Screen not redrawing
  • Next by thread: Re: Screen not redrawing
  • Index(es):
    • Date
    • Thread