Re: binding a binding?
Re: binding a binding?
- Subject: Re: binding a binding?
- From: Lee Ann Rucker <email@hidden>
- Date: Wed, 22 Feb 2012 14:40:26 -0800
On Feb 19, 2012, at 3:11 PM, William Squires wrote:
>
>
> Now, I can bind the label's value to File's Owner's self.stringInterval without Xcode/IB complaining.
> I think you can all see where this is going... yep, the label doesn't update because it's static; there's nothing to tell the label to ask (through the binding) for the self.stringInterval's current value.
Implement
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key
to add "interval" to the keyPaths affecting "stringInterval". This functionality is amazingly powerful.
>
> 1) Is it better to use KVO to observe self.interval somehow from the label, so it receives the updated info
> 2) Bite the bullet and simply update the label's .text property in code when the slider's value changes?
> -or-
> 3) is there a way I can directly bind intervalLabel's value to self.interval using an NSValueTransformer?
_______________________________________________
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