• 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 on setNeedsDisplay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView does not update on setNeedsDisplay


  • Subject: Re: NSImageView does not update on setNeedsDisplay
  • From: Nicolas Berloquin <email@hidden>
  • Date: Fri, 18 Nov 2005 10:09:23 +0100

I'd be very interested to see what people say, because I stumble on the same problem.
What I resorted to was <ugly> setImage: nil], then setImage: theImage]; </ugly>
I've played with the caching flags etc which didn't help much.


Are you updating the image in a background thread by any chance ?


On 18 nov. 05, at 05:24, Eric Smith wrote:

I've downloaded several Apple code samples, wherein an NSImageView's image is changed. After the image is changed, a simple call to [imageView setNeedsDisplay:YES] is sufficient to update the image in a GUI. However, when I do this in my code, the image is not updated in the GUI.

I'm changing the bitmap data. When I change the data, I have to get the NSImageView's cell, and do [viewCell setImage:nil]. Then I can do a [viewCell setImage:theImage], and the image will be updated in the GUI. What am I doing wrong? What needs to be done in order for an NSImageView's image to be updated in a GUI?

Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSImageView does not update on setNeedsDisplay (From: Eric Smith <email@hidden>)

  • Prev by Date: (solved) Re: Displaying image and core data
  • Next by Date: Re: Multiple help menus?
  • Previous by thread: NSImageView does not update on setNeedsDisplay
  • Next by thread: Re: NSImageView does not update on setNeedsDisplay
  • Index(es):
    • Date
    • Thread