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

NSImageView does not update on setNeedsDisplay


  • Subject: NSImageView does not update on setNeedsDisplay
  • From: Eric Smith <email@hidden>
  • Date: Thu, 17 Nov 2005 20:24:56 -0800

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


  • Follow-Ups:
    • Re: NSImageView does not update on setNeedsDisplay
      • From: Nicolas Berloquin <email@hidden>
  • Prev by Date: Re: Best way to animate series of images in 10.4
  • Next by Date: Re: Best way to animate series of images in 10.4
  • Previous by thread: Re: Best way to animate series of images in 10.4
  • Next by thread: Re: NSImageView does not update on setNeedsDisplay
  • Index(es):
    • Date
    • Thread