Another AppleScript-ObjC Bridge Question
Another AppleScript-ObjC Bridge Question
- Subject: Another AppleScript-ObjC Bridge Question
- From: Dave <email@hidden>
- Date: Mon, 09 Nov 2015 14:25:10 +0000
I’m trying to override init_ in using an AppleScript-ObjC Class, here is my code:
on init_()
continue init_()
display dialog "HELLO WORLD"
testOutlookAgain_("Hello") of me
-- Add your subclass-specific initialization here.
-- If an error occurs here, return missing value.
return me
end init_
on initWithBundleAppID_(theBindleAppID)
init_() of me
testOutlookAgain_("Hello") of me
-- Add your subclass-specific initialization here.
-- If an error occurs here, return missing value.
return me
end initWithBundleAppID_
But init doesn’t seem to get called. Should I have the “_” after the method name or not? I’ve tried both methods but it still doesn’t seem to call init_ or at least my AppleScript version of init…..
All the Best
Dave
_______________________________________________
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