• 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
Another AppleScript-ObjC Bridge Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Another AppleScript-ObjC Bridge Question
      • From: Dave <email@hidden>
References: 
 >Re: AppleScript-ObjC Bridge Question (From: Dave <email@hidden>)
 >Re: AppleScript-ObjC Bridge Question (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: runOnMainQueueWithoutDeadlocking and all its evils.
  • Next by Date: Re: Another AppleScript-ObjC Bridge Question
  • Previous by thread: Re: AppleScript-ObjC Bridge Question
  • Next by thread: Re: Another AppleScript-ObjC Bridge Question
  • Index(es):
    • Date
    • Thread