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

Re: AppleScript-ObjC Bridge Question


  • Subject: Re: AppleScript-ObjC Bridge Question
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 31 Oct 2015 23:05:09 +1100
  • X_v_e_cd: 04b07091a28467d820df541dd6606e07
  • X_v_r_cd: 56127127bb1d74fe8292241951a5974c

On 31 Oct 2015, at 10:58 PM, Dave <email@hidden> wrote:
>
> So:
>
>    continue init()
>
> Calls the Superclass?

Yes.

> How would I do this:
>
> -(void) initWithParam:(NSString*) theParam
> {
> self = [self initWithParam:theParam andAnotherParam:nil];
> if (self == nil)
> 	return;
>
> //  Do something
>
> return self;
> }

Probably:

	on initWithParam:theParam
		continue initWithParam:theParam andAnotherParam:(missing value)

		-- Add your subclass-specific initialization here.
		-- If an error occurs here, return missing value.

		return me
	end init

But the differing inits smells a bit to me -- especially as it's unnecessary.

>
> Thanks a lot, if you could point me to some documentation on this

There is none to speak of.

--
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


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

  • Prev by Date: Re: AppleScript-ObjC Bridge Question
  • Next by Date: Re: AppleScript-ObjC Bridge Question
  • Previous by thread: Re: AppleScript-ObjC Bridge Question
  • Next by thread: Re: AppleScript-ObjC Bridge Question
  • Index(es):
    • Date
    • Thread