• 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: "John C. Welch" <email@hidden>
  • Date: Wed, 26 May 2010 22:43:24 -0400
  • Thread-topic: Almost there with bindings

On 5/26/10 9:54 PM, "Shane Stanley" <email@hidden> wrote:

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

Given the arbitrary nature of Xcode, that's not an entirely bad answer.

>
> 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.)

Ahh...okay. That makes some sense then.

--
Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt.
(When catapults are outlawed, only outlaws will have catapults.)

Jeff La Grua


 _______________________________________________
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

References: 
 >Re: Almost there with bindings (From: Shane Stanley <email@hidden>)

  • Prev 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