• 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: Russ <email@hidden>
  • Date: Fri, 17 Oct 2008 15:10:22 -0700 (PDT)

Good idea, but no such luck. It's sequencing through them as expected, and the addresses match up to a separate dump I have. The rectangle is OK too. My views are flipped BTW. I'm real happy with how the draw looks, if it would just keep on drawing.... Is there anything on the NSWindow that must be tickled, or the NSApp. Looks a lot like the draw is OK, just not making it to the screen.



----- Original Message ----

Sent: Friday, October 17, 2008 5:53:36 PM
Subject: Re: Screen not redrawing

--- On Fri, 10/17/08, Russ <email@hidden> 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.

Could you by any chance have accidentally created extra copies of the views? Try putting an NSLog(@"%p", self) in the drawRect: implementation and see if you get different addresses.

Cheers,
Chuck

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


__________________________________________________
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: fullscreen quicktime across multiple monitors
  • Next by Date: Re: File icons shown upside down in the Open Recent menu
  • Previous by thread: Re: Screen not redrawing
  • Next by thread: Re: Screen not redrawing
  • Index(es):
    • Date
    • Thread