Re: AppleScript-ObjC Bridge Question
Re: AppleScript-ObjC Bridge Question
- Subject: Re: AppleScript-ObjC Bridge Question
- From: Shane Stanley <email@hidden>
- Date: Fri, 30 Oct 2015 11:07:54 +1100
On 30 Oct 2015, at 1:14 AM, Dave <email@hidden> wrote:
>
> Using the AppleScript-ObjC bridge is it possible to define an init method in the .applescript file and have it called like a normal Cocoa init?
Sure. If you create a document-based ASObjC project, you'll see an example:
on init()
continue init()
-- Add your subclass-specific initialization here.
-- If an error occurs here, return missing value.
return me
end init
> Is it possible to use different init methods, e.g.
>
> -(id) initWithParameterDictionary:(NSDictionary*) theParameterDictionary;
Yes, as long as the parameters are objects and not primitive types.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden