• 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: me and my do not refer to your script's class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: me and my do not refer to your script's class


  • Subject: Re: me and my do not refer to your script's class
  • From: Dave <email@hidden>
  • Date: Sat, 25 Dec 2010 20:57:44 -0600

The following causes nothing to happen, not even a log message. It's as though Applescript is treating it as a call to a run handler (which would explain the silence) instead of an Objective-C method invoke.

> performSelector_withObject_afterDelay_("ReProbe:", missing value, 5)


The following lines all print out:   <Test2AppDelegate @0x2005fabe0: OSAID(5)>

   on applicationWillFinishLaunching_(aNotification)

	log me
	log |description|()
	log me's |description|()

But the following lines print:  Test2AppDelegate

   on applicationWillFinishLaunching_(aNotification)

	log current application's class "Test2AppDelegate"
	log current application's class "Test2AppDelegate"'s |description|()

And "me" tests not equal to the longer expression, so these can't be the same objects.

-- Dave

On Dec 25, 2010, at 7:03 PM, Shane Stanley wrote:

> On 26/12/10 9:29 AM, "Dave" <email@hidden> wrote:
>
>> I wanted to call a handler after a 5 second delay so I tried:
>>
>> my's performSelector_withObject_afterDelay_("ReProbe:", missing value, 5)
>
> Id there some reason you couldn't simply use:
>
> performSelector_withObject_afterDelay_("ReProbe:", missing value, 5)


-- Dave

 _______________________________________________
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: me and my do not refer to your script's class
      • From: Shane Stanley <email@hidden>
    • Re: me and my do not refer to your script's class
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: me and my do not refer to your script's class (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: me and my do not refer to your script's class
  • Next by Date: Re: me and my do not refer to your script's class
  • Previous by thread: Re: me and my do not refer to your script's class
  • Next by thread: Re: me and my do not refer to your script's class
  • Index(es):
    • Date
    • Thread