Re: NSImageView does not update on setNeedsDisplay
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