Questions tagged [nsxpcconnection]

The NSXPCConnection API provides an objective-c RPC mechanism built on top of xpc.

55 questions
0
votes
0 answers

Running xpc connection outside the main method

I was wondering if there's any limitation for the context where I initialize my xpc service. Here's how I currently initialize my xpc service from main() which works just fine. listener_ = [[NSXPCListener alloc] …
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
1 answer

How to resolve errors when installing XPC connection on mac so I can hack my furby?

Having an error while installing XPC connection on MacOS. Currently running Mojave (10.14.6). For context, I'm hacking a furby using this repo. It's having me run npm install and then npm install xpc-connection for setup. When I run npm install…
0
votes
1 answer

PyObjc: implement NSXPCInterface

I am writing an Extension and main app is in PyObjc. I want to setup communication between main app and Extension. With ref to link I tried writing a Protocol. SampleExtensionProtocol = objc.formal_protocol('SampleExtensionProtocol', (), [ …
Durgaprasad
  • 1,910
  • 2
  • 25
  • 44
0
votes
1 answer

Reset / Re-initialize NSXPCConnection?

Sorry in advance if this is an obvious question or I demonstrate a total lack of knowledge here (which would be accurate). OS: macOS (10.12+) IDE: Xcode (11) Using: Cococa + Objective-C We're interacting with a C API. That API stores all sorts of…
eww
  • 300
  • 1
  • 9
0
votes
1 answer

porting from mac to linux/windows and looking for a cross platform XPC equivalent

I'm using XPC and want to port to linux/windows. Looking for an alternative which can perform similar functionality. is there something like this?
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
1 answer

Swift-Problem discovered when creating a helper

When i try to create a helper for an application that retrieve system software and hardware details using system_profiler command i got the following error. Response from XPC service: HELLO XPC Response from XPC service:…
biju
  • 15
  • 7
0
votes
1 answer

how can I remove XPCService by script

I create project for os x application with xpcservices that run by loginItems. that's mean the service is founded in the app in the path:{APP_NAME}.app/Contents/Library/LoginItems and who is responsible for run the service is the the main…
Almog_0
  • 422
  • 4
  • 11
0
votes
1 answer

IPC Chrome to Cocoa App

I have a Chrome extension that I would like to communicate with my native Cocoa app. Im able to get data from the extension to a command line application using native messaging. I now need to get the info to the main Cocoa app. Im looking into…
Marcus
  • 512
  • 1
  • 7
  • 22
0
votes
1 answer

Using Sockets with NSXPCConnection

Running into an issue when using sockets with an NSXPCConnection. Basically, there is a main process and a helper process running, established via NSXPCConnection. That helper process needs to act as a server and listen to a particular port (say…
Live2Enjoy7
  • 1,075
  • 2
  • 11
  • 22
0
votes
2 answers

App reply not called when passing non-null parameter from NSXPCConnection

I'm using XPC to seperate a project into two projects - a main project, built for os x @ 64-bit, and an XPC service built for os x @ 32-bit, as it is using a library that is not available for 32 bit and cannot be replaced. The two communicate using…
Niv
  • 2,294
  • 5
  • 29
  • 41
1 2 3
4