• 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: Almost there with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Almost there with bindings


  • Subject: Re: Almost there with bindings
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 27 May 2010 11:54:41 +1000
  • Thread-topic: Almost there with bindings

I'm tempted to answer "because that way it works".

Bindings rely on key-value observing. In Objective-C, you can change the
value of a property within a class either directly or via accessor methods;
both change the value, but only one is key-value observable.

Similarly, in ASObjC, adding the "my" makes the change key-value observable.
(The change seems to wrap the statement in calls to willChangeValueForKey:
and didChangeValueForKey: -- how that happens, who knows.)

--
Shane Stanley <email@hidden>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Almost there with bindings
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: Almost there with bindings (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: Almost there with bindings
  • Next by Date: Re: Almost there with bindings
  • Previous by thread: Re: Almost there with bindings
  • Next by thread: Re: Almost there with bindings
  • Index(es):
    • Date
    • Thread