Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageVIew bindings



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.
References: 
 >NSImageVIew bindings (From: Francisco Tolmasky <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.