Re: Calling a handler from another script
Re: Calling a handler from another script
- Subject: Re: Calling a handler from another script
- From: Shane Stanley <email@hidden>
- Date: Sun, 27 Mar 2016 19:57:33 +1100
On 27 Mar 2016, at 5:47 PM, Brian Christmas <email@hidden> wrote:
>
> I’m passing my new script object’s only handler a list of variables, the first of which is bound to a scroll field; theNewColorsScrollView in my example.
No, it's an *outlet* to the scroll view. It's not bound at all. Sorry I keep harping about using the correct terminology, but if you don't, you make it so much more difficult to find what you need in the documentation or by searching the Web. if you're fuzzy on the terms, you'll be fuzzy on what's happening.
And you're saying scroll view, but I doubt very much that you are dealing with a scroll view. I suspect you mean a *text view* within a scroll view. If so, you should change the name accordingly.
>
> I don’t know yet if it will work, but as this new script object could be called from any amount of scripts existing in a project, should I include the actual calling script (by name or by binding), in the list of variables?
Why would you?
> Or, is the mere fact I’m (hopefully) using a variable that’s a binding
It's an *outlet*. That means the variable contains a pointer to the object.
> I’m asking because I’m not yet even sure I can pass a variable that’s a bound property between script handlers.
It's an *outlet*. I'll keep saying it, in the hope the message gets through. In this context, they're not script handlers -- they're methods of classes or of instances of the classes.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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