Re: -setNeedsDisplay: different between Tiger and Leopard
Re: -setNeedsDisplay: different between Tiger and Leopard
- Subject: Re: -setNeedsDisplay: different between Tiger and Leopard
- From: Murat Konar <email@hidden>
- Date: Fri, 14 Dec 2007 10:23:39 -0800
It should, but you may see some flicker as the update will happen in
two parts.
A better solution is to union the old and new frames and call
setNeedsDisplayInRect:
_murat
On Dec 14, 2007, at 10:16 AM, John Stiles wrote:
The call to -display will /erase/ from the old location? Really?
That seems a little strangeā¦
I. Savant wrote:
What's the simplest way to fix this on all OSes?
[control display]; // clean up at old location
[control setFrame:newFrame]; // move control
[control setNeedsDisplay:YES]; // redraw at new location
--
I.S.
_______________________________________________
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
_______________________________________________
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