• 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: Still not getting it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still not getting it


  • Subject: Re: Still not getting it
  • From: Philip Buckley <email@hidden>
  • Date: Wed, 20 Mar 2013 09:51:27 +0000

Thanks very much, Shane. The step I was missing was hooking up the instance of the first script as an outlet to the property in the second script. Gggrrhh. Makes perfect sense now (of course)! Onwards and upwards . . .

Thanks

Philip


On 19 Mar 2013, at 23:46, Shane Stanley wrote:

> On 20/03/2013, at 10:36 AM, Philip Buckley <email@hidden> wrote:
>
>> Would someone be so kind as to give me a bit of code that shows setting the value of a thing in one script and then getting the value of that thing from another script?
>
> In class 1:
>
> property someThing:missing value
>
> on doSomething_(sender) -- action handler
> set my someThing to "blah"
> end doSomething_
>
> on mangleValue_(someText)
> return someText as text & something as text -- someText because it "arrives" as NSString
> end mangleValue_
>
> In class 2:
>
> property class1Object: missing value -- connected as an outlet to instance in interface
>
> on doIt_(sender)
> set theText to class1Object's someThing() -- returned as NSString
> --> "blah"
> set newText to class1Object's mangleValue_(theText) -- returned as NSString
> --> "blahblah"
> display dialog newText as text -- need to coerce to use as AS string
> end doIt_



 _______________________________________________
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: 
 >Still not getting it (From: Philip Buckley <email@hidden>)

  • Prev by Date: Re: Still not getting it
  • Next by Date: Re: Still not getting it
  • Previous by thread: Re: Still not getting it
  • Next by thread: Stepper problem.
  • Index(es):
    • Date
    • Thread