Re: NSImageVIew bindings
Re: NSImageVIew bindings
- Subject: Re: NSImageVIew bindings
- From: Scott Anguish <email@hidden>
- Date: Sat, 31 Jan 2004 03:35:18 -0500
On Jan 31, 2004, at 3:24 AM, Francisco Tolmasky wrote:
I've set an image view's bindings to the data object of one of my
internal objects. When I drag and drop an image to the view the model
is properly updated, but for some reason when I call setImage on the
image view the object is not updated. Does anyone know what could be
wrong?
That sounds like a bug, although I wonder if it the same behavior is
displayed if you try a similar thing with an NSTextField binding..
Anyways.. you should probably set the image by setting the bound data
object directly as a work around. (You might be able to force the
update by having the imageview send it's target action, if you can't
access the model directly for some reason -- I'm not sure)
Ah, incidentally.... The data provided to the NSImageView via the
data binding can be any any of the image types supported by NSImage..
but when you change the image, the data is updated as a TIFF
representation.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.