On 30 Oct 2015, at 1:14 AM, Dave <d...@looktowindward.com> 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 <sstan...@myriad-com.com.au>
<www.macosxautomation.com/applescript/apps/>


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to