Re: Using radio buttons to set an image in an image view
Re: Using radio buttons to set an image in an image view
- Subject: Re: Using radio buttons to set an image in an image view
- From: Matt Neuburg <email@hidden>
- Date: Tue, 22 Sep 2009 10:29:22 -0700
- Thread-topic: Using radio buttons to set an image in an image view
On Tue, 22 Sep 2009 11:40:10 +0100, Martin Hawkins
<email@hidden> said:
>I can set the initial value of the image by using
>
>actionImagePath = [NSMutableString stringWithString: @"/Users/.../one.jpg"];
>// the full path is hard coded at the moment - worry about that later
>
>as the value path for the image view is bound to actionImagePath.
>
>What I cannot do is change the image. When I click on the second radio
>button, I use
>
>[actionImagePath setString:@"/Users/.../two.jpg"];
That change is happening "behind the back" of KVO (key-value observing), so
the binding does not know about it. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden