Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-28 Thread sumit bansal
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

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-27 Thread Shane Stanley
On 28 Feb 2017, at 5:43 am, sumit bansal 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

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-27 Thread sumit bansal
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

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-26 Thread Shane Stanley
On 26 Feb 2017, at 1:35 pm, dangerwillrobinsondan...@gmail.com wrote: > > Yeah but even with OSAKit, to implement a language you need to link to Carbon > and use deprecated Carbon calls. I think you'll find that most (if not all) the calls you need to use are no longer marked as deprecated.

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-25 Thread dangerwillrobinsondanger
Yeah but even with OSAKit, to implement a language you need to link to Carbon and use deprecated Carbon calls. Sent from my iPhone > On Feb 26, 2017, at 7:18, じょいすじょん wrote: > > Are you implementing scriptability for a Cocoa application? If so, you >

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-25 Thread Ken Heglund
If you are linking against OSAKit, then something like the following (from ) may be a starting point: ComponentInstance compInstance = [[OSALanguage defaultLanguage] componentInstance]; -Ken > On Feb 25, 2017, at 1:02 PM, sumit bansal > wrote: > > I am using

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-25 Thread sumit bansal
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

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-24 Thread Jens Alfke
> On Feb 24, 2017, at 9:11 AM, sumit bansal > 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.

Need replacement of Component Manager::OpenDefaultComponent

2017-02-24 Thread sumit bansal
Hello All, Can anyone please help me to find out the replacement of Function => Component Manager::OpenDefaultComponent. I am removing deprecated APIs from my official project. As upper mentioned APIs has been deprecated in 10.8 version, so I have to replace the same. Big Thanks in Advance.