• 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
Properties, read only and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Properties, read only and bindings


  • Subject: Properties, read only and bindings
  • From: Steven W Riggins <email@hidden>
  • Date: Wed, 6 Aug 2008 21:51:01 -0700

Hi!

I'm winding my way through KVO, readonly properties and bindings.

I have an object which has a bool state. I have a method that toggles that state.

I have a button that calls the method that toggles the state. The button has a title, which I've bound to a readonly property, which has a getter that returns a localized label based on the state.

So when I change the state, obviously the readonly property doesn't change, and thus the button label does not change.

Changing the readonly property to a normal ivar works fine.

Is there a way to use a synthesized property in this manner, or is it even proper?

Thanks!

Steve
_______________________________________________

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


  • Follow-Ups:
    • Re: Properties, read only and bindings
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Token Field tags selected when raising panel window ...
  • Next by Date: Re: Properties, read only and bindings
  • Previous by thread: Token Field tags selected when raising panel window ...
  • Next by thread: Re: Properties, read only and bindings
  • Index(es):
    • Date
    • Thread