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