Redrawing a superview from another view's -drawRect: method
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