• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using radio buttons to set an image in an image view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: IB does not show Outlet/Action section in inspector
  • Next by Date: UITableView Custom cell with image
  • Previous by thread: Using radio buttons to set an image in an image view
  • Next by thread: Controlling Spaces and retrieving information about the current Space?
  • Index(es):
    • Date
    • Thread