Re: Explicit run handler usage
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