• 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
Re: NSImageView does not update in a loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSImageView does not update in a loop (From: James Udo Ludtke <email@hidden>)

  • Prev by Date: NSImageView does not update in a loop
  • Next by Date: Re: NSImageView does not update in a loop
  • Previous by thread: NSImageView does not update in a loop
  • Next by thread: Re: NSImageView does not update in a loop
  • Index(es):
    • Date
    • Thread