Re: Need replacement of Component Manager::OpenDefaultComponent
Re: Need replacement of Component Manager::OpenDefaultComponent
- Subject: Re: Need replacement of Component Manager::OpenDefaultComponent
- From: sumit bansal <email@hidden>
- Date: Tue, 28 Feb 2017 00:13:18 +0530
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.
On 26 February 2017 at 05:53, Ken Heglund <email@hidden>
wrote:
> If you are linking against OSAKit, then something like the following (from
> <OSAKit/OSALanguage.h>) may be a starting point:
>
> ComponentInstance compInstance = [[OSALanguage defaultLanguage]
> componentInstance];
>
> -Ken
>
> > On Feb 25, 2017, at 1:02 PM, sumit bansal <email@hidden>
> wrote:
> >
> > I am using it to implement scripting in my project.
> >
> > I have used the API in following way:
> >
> >
> > *ComponentInstance & compInstance =
> > OpenDefalutConmponent(kOSAComponentType,
> > kOSAGenericScriptingComponentSubtype);*
> > *OSASetSendProc( compInstance, someParam1, someParam2); //function in
> > Carbon/Frameworks/OpenScripting/OSA.h*
> >
> >
> > I am using OpenScripting Architecture(OSA) APIs to implement the
> scripting
> > functionality. To use APIs of OSA, we need to pass ComponentInstance.I
> > don't know any other way of creating the object of ComponentInstance, the
> > only way I know has been depreciated.
> >
> >
> > I am new in MAC programming. Please forgive me if I am asking/replying
> > something foolish.
> >
> > On 25 February 2017 at 02:42, Jens Alfke <email@hidden> wrote:
> >
> >>
> >> On Feb 24, 2017, at 9:11 AM, sumit bansal <email@hidden
> >
> >> wrote:
> >>
> >> Can anyone please help me to find out the replacement of
> >> Function => Component Manager::OpenDefaultComponent.
> >>
> >>
> >> That’s very generic; the Component Manager is/was just an ancient
> >> DLL-loading mechanism. IIRC it was mostly used by QuickTime. What are
> you
> >> using the Component Manager for?
> >>
> >> —Jens
> >>
> > _______________________________________________
> >
> > 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