-setNeedsDisplay: different between Tiger and Leopard
-setNeedsDisplay: different between Tiger and Leopard
- Subject: -setNeedsDisplay: different between Tiger and Leopard
- From: John Stiles <email@hidden>
- Date: Fri, 14 Dec 2007 10:13:15 -0800
I am writing code that moves a control from one place to another. In
Leopard, this works great:
[control setNeedsDisplay:YES]; // clean up at old location
[control setFrame:newFrame]; // move control
[control setNeedsDisplay:YES]; // redraw at new location
However, in Tiger, this doesn't work properly; the control is not erased
from its old location. It behaves as if the first -setNeedsDisplay: was
not called at all. (And in fact, on Leopard, if you remove the first
-setNeedsDisplay:, you get the same artifacts.)
What's the simplest way to fix this on all OSes?
_______________________________________________
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