Re: Lion doesn't like tricky.key.paths in bindings?
Re: Lion doesn't like tricky.key.paths in bindings?
- Subject: Re: Lion doesn't like tricky.key.paths in bindings?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 28 Jul 2011 23:34:51 -0700
On 2011 Jul 28, at 19:42, Kyle Sluder wrote:
> KVO doesn't do an -isEqual: on the result of your method. It does
> pointer equality. Something changed on Lion that causes it to now care
> that the return value of your method stays constant when it should.
Thank you, Kyle. For a while I thought it was "just me".
> If you want to use a transformer-type method, you implement
> +keyPathsForValuesAffecting<<YourCleverProperty>>
Yes, that's what I've done. Less fuss than value transformers, unless you can re-use them.
_______________________________________________
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