• 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
Figuring out what's causing redrawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Figuring out what's causing redrawing


  • Subject: Figuring out what's causing redrawing
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 13 May 2010 13:52:02 -0600

I've tried searching around but haven't found an answer to this. I have several views that are being constantly & apparently needlessly redrawn and I can't figure out why this is happening. How do I catch the culprit that is causing the views to be redrawn? The redrawing is appearing in the usual place, within a call to -[NSWindow displayIfNeeded] in the run loop.

I already tried the following:

1. Breaking on -[NSView setNeedsDisplayInRect:], but -drawRect: kept being called anyway, so whatever is causing this is circumventing this method.

2. Observing the value of -[NSView needsDisplay], but the value never changes, and it keeps getting redisplayed anyway. Apparently the value is a perpetual YES...

Nick Zitzmann
<http://www.chronosnet.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

  • Follow-Ups:
    • Re: Figuring out what's causing redrawing
      • From: Scott Andrew <email@hidden>
    • Re: Figuring out what's causing redrawing
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Filling a drawer (Core Data and a newbie problem)
  • Next by Date: Re: How to edit/resize embedded graphics and images in a NSTextView ?
  • Previous by thread: CocoaHeads Utah Tonight (Thursday), 7pm
  • Next by thread: Re: Figuring out what's causing redrawing
  • Index(es):
    • Date
    • Thread