On 4-Apr-09, at 5:36 PM, Martin Cote wrote:

Hi,
I would like to know if there's a way to use bindings to set the image of an NSImageView from a filename in Interface Builder. As far as I can see, you
can only set the image from an NSImage instance.

I'm feeling that I'll have to write some code to do it, but if there's a way
to do it in IB, I would like to know how.

NSImageView has a valuePath binding. That's for just that purpose.

file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSImageView.html


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to