• 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
Redrawing a superview from another view's -drawRect: method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redrawing a superview from another view's -drawRect: method


  • Subject: Redrawing a superview from another view's -drawRect: method
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 2 May 2005 07:33:59 -0600

In Panther, it was possible to get another view and _only_ that view to redraw itself by calling -setNeedsDisplay: with YES on the view inside another view's -drawRect: method.

In Tiger, it seems that the call to -setNeedsDisplay: is ignored. And if I try to manually tell it to display in the same spot where - setNeedsDisplay: used to be, then that view calls the other view's - drawRect: method and creates an infinite loop. If I make the run loop call -display on the view when the run loop is next available, then the infinite loop is avoided, but the CPU spikes to 100% because it's constantly redrawing the two views.

Is there a way to get the Panther drawing behavior back? If so, then what should I do?

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Redrawing a superview from another view's -drawRect: method
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: NSRunLoop/NSLayoutManager
  • Next by Date: Re: Redrawing a superview from another view's -drawRect: method
  • Previous by thread: NSRunLoop/NSLayoutManager
  • Next by thread: Re: Redrawing a superview from another view's -drawRect: method
  • Index(es):
    • Date
    • Thread