Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why aren't my bindings firing?




On Jun 30, 2008, at 2:53 PM, Hamish Allan wrote:

On Mon, Jun 30, 2008 at 10:43 PM, Ron Lue-Sang <email@hidden> wrote:

Yes! infoForBinding is what you should use to implement the logic in #1.
[...]
2b) Implement the "read" logic yourself by implementing bind:.

What puzzles me is that NSTextField doesn't seem to do either of these, yet still seems to know which key path to update after user interaction.

Hamish


Yep, that's right. The bindings machinery uses a faster cache. The same way as bindable-view implementors are free to cache the binding information any way you like. You don't need to use infoForBinding, but it's the easiest solution to describe.


-------------------------- RONZILLA



_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Why aren't my bindings firing? (From: Charles Srstka <email@hidden>)
 >Re: Why aren't my bindings firing? (From: Charles Srstka <email@hidden>)
 >Re: Why aren't my bindings firing? (From: Ken Thomases <email@hidden>)
 >Re: Why aren't my bindings firing? (From: Charles Srstka <email@hidden>)
 >Re: Why aren't my bindings firing? (From: "Hamish Allan" <email@hidden>)
 >Re: Why aren't my bindings firing? (From: Charles Srstka <email@hidden>)
 >Re: Why aren't my bindings firing? (From: "Hamish Allan" <email@hidden>)
 >Re: Why aren't my bindings firing? (From: "Michael Ash" <email@hidden>)
 >Re: Why aren't my bindings firing? (From: "Hamish Allan" <email@hidden>)
 >Re: Why aren't my bindings firing? (From: Ron Lue-Sang <email@hidden>)
 >Re: Why aren't my bindings firing? (From: "Hamish Allan" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.