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

NSImageView does not update in a loop


  • Subject: NSImageView does not update in a loop
  • From: James Udo Ludtke <email@hidden>
  • Date: Thu, 15 Feb 2007 23:50:27 -0500

I am processing a batch of images by running through a

for ( i= first; i <= last; i ++) loop.

The image processing works OK, and each processed image is saved in the loop. The user interface window contains an NSImageView. To give the user an indication that the images are processed, I like to show a small thumb image as each image as it is processed.

I have a working method that updates the NSImageView with

 [mainImageView setImage:[self thumbImage]];

This line is called once for each image, as it is processed

The NSImageView is updated OK when I convert two images in the loop. The problem is that when I run a batch of several images, the NSImageView only updates after the last image has been processed. The images after the first and before the last never show.

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-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


  • Follow-Ups:
    • Re: NSImageView does not update in a loop
      • From: Adam Leonard <email@hidden>
    • Re: NSImageView does not update in a loop
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Does movePath:toPath:handler correctly manage the handler return value?
  • Next by Date: Re: NSImageView does not update in a loop
  • Previous by thread: NSScroller drawArrow:highlights:
  • Next by thread: Re: NSImageView does not update in a loop
  • Index(es):
    • Date
    • Thread