Re: NSImageView does not update in a loop
Re: NSImageView does not update in a loop
- Subject: Re: NSImageView does not update in a loop
- From: "I. Savant" <email@hidden>
- Date: Fri, 16 Feb 2007 00:01:55 -0500
James:
On Feb 15, 2007, at 11:50 PM, James Udo Ludtke wrote:
It looks as if the window view is locked while the loop is running.
I have been looking without success for a method to force the
window to update.
Cocoa drawing is optimized. A view is normally only 'flagged for
display' when something changes, then does so on the next run loop
(unless specifically programmed to do otherwise).
In a tight loop, the run loop doesn't have a chance to ...
well ... run again. In this case, you need to force display (drawing)
in each iteration of your loop rather than flagging it as needing
display:
[mainImageView display];
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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