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