• 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: Need replacement of Component Manager::OpenDefaultComponent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need replacement of Component Manager::OpenDefaultComponent


  • Subject: Re: Need replacement of Component Manager::OpenDefaultComponent
  • From: sumit bansal <email@hidden>
  • Date: Wed, 01 Mar 2017 00:39:02 +0530

Hey Shane,

It's working with following as suggested by you.

ComponentInstance compInstance = [[OSALanguageInstance
languageInstanceWithLanguage:[OSALanguage languageForName:@"AppleScript"]]
componentInstance]

Thanks alot for helping.

On 28 February 2017 at 05:25, Shane Stanley <email@hidden>
wrote:

> On 28 Feb 2017, at 5:43 am, sumit bansal <email@hidden>
> wrote:
> >
> > API: OpenDefaultComponent, whenever we call this API, we always get a new
> > instance to that component.
> >
> > *As per definition: *OpenDefaultComponent* Opens a connection to a
> > registered component of the component type and subtype specified by your
> > application. *
> >
> >
> > But with the following API, we always get the same instance even on
> calling
> > multiple times.
> > ComponentInstance compInstance = [[OSALanguage defaultLanguage]
> > componentInstance];
> >
> >
> > My requirement is to get the different instance on every call.
>
>
> ComponentInstance compInstance = [[OSALanguageInstance
> languageInstanceWithLanguage:[OSALanguage languageForName:@"AppleScript"]]
> componentInstance]
>
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
>
>
>
> _______________________________________________
>
> 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:
> email@hidden
>
> This email sent to email@hidden
>
_______________________________________________

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


References: 
 >Need replacement of Component Manager::OpenDefaultComponent (From: sumit bansal <email@hidden>)
 >Re: Need replacement of Component Manager::OpenDefaultComponent (From: Jens Alfke <email@hidden>)
 >Re: Need replacement of Component Manager::OpenDefaultComponent (From: sumit bansal <email@hidden>)
 >Re: Need replacement of Component Manager::OpenDefaultComponent (From: Ken Heglund <email@hidden>)
 >Re: Need replacement of Component Manager::OpenDefaultComponent (From: sumit bansal <email@hidden>)
 >Re: Need replacement of Component Manager::OpenDefaultComponent (From: Shane Stanley <email@hidden>)

  • Prev by Date: Replacement of deprecated API GetProcessInformation
  • Next by Date: Re: Replacement of deprecated API GetProcessInformation
  • Previous by thread: Re: Need replacement of Component Manager::OpenDefaultComponent
  • Next by thread: Re: Need replacement of Component Manager::OpenDefaultComponent
  • Index(es):
    • Date
    • Thread