• 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: Explicit run handler usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Explicit run handler usage


  • Subject: Re: Explicit run handler usage
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 27 Apr 2010 13:56:02 -0700

On Apr 17, 2010, at 2:04 PM, email@hidden wrote:

> In the following ASOC myTasker becomes connected to an instance of myTask when the nib is loaded.
> The app loads and  myTask executes.
>
> My questions are:
>
> 1. myTask isn't an NSObject subclass - yet it works. Is it safe to assume that this will always be the case?

"Always" is a long time.  I'd rather people explicitly subclassed NSObject, but the implicit subclassing will continue to work for some time.  Worst case, you'll start getting warnings at some point in the future.

> 2. if I change the code to use an explicit run handler (version 2) the run handler does not get called. Why?

Because calling terminology-named methods (such as "run") through the bridge isn't supported.  Check the Xcode log and see if you're getting a warning about it; if you're not, I have some work to do.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
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: Explicit run handler usage
      • From: "email@hidden" <email@hidden>
References: 
 >Explicit run handler usage (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Debugger
  • Next by Date: Re: Explicit run handler usage
  • Previous by thread: Re: Explicit run handler usage
  • Next by thread: Re: Explicit run handler usage
  • Index(es):
    • Date
    • Thread