• 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 19:09:10 +0100

I'm using an NSImageView as a simple 'display'.
Here's what I do : in the background thread, I may modify the image, I then send an event in the main loop
(performSelectorInMainThread ...) to a method that, in the begining was only calling the [myImageView setNeedsDisplay: YES].
I ended up having to pass nil then the same image back in order for it to work correctly. (doing a setImage with the same image
didn't have any visible effect).


I'm having the same problem in a tableview with an NSImageCell, which works even worst than the NSImageView. I only get updates
when I do a reloadData. Using setNeedsDisplayInRect doesn't work for it (it works for the other text columns, though).


On 18 nov. 05, at 17:37, Shawn Erickson wrote:

On 11/18/05, Nicolas Berloquin <email@hidden> wrote:
Yep I confirm that my images only get updated when resized... unless
I do the ugly business.

Are you using your NSImageView as a control (which it is) that customers can drag things into ect.? Or are you just using it display an image?



_______________________________________________ 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: Shawn Erickson <email@hidden>
References: 
 >NSImageView does not update on setNeedsDisplay (From: Eric Smith <email@hidden>)
 >Re: NSImageView does not update on setNeedsDisplay (From: Eric Smith <email@hidden>)
 >Re: NSImageView does not update on setNeedsDisplay (From: Nicolas Berloquin <email@hidden>)
 >Re: NSImageView does not update on setNeedsDisplay (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: the right place where put a serial number
  • Next by Date: Re: [SOLVED] How to make sure that end of string is visible in NSTextField
  • Previous by thread: Re: NSImageView does not update on setNeedsDisplay
  • Next by thread: Re: NSImageView does not update on setNeedsDisplay
  • Index(es):
    • Date
    • Thread