Questions tagged [xpc]

XPC is a low level library that simplifies inter process communication (IPC) on iOS and OS X.

178 questions
0
votes
1 answer

XPC service array crashes

I'm using the C interface for XPC services; incidentally my XPC service runs very nicely asides from the following problem. The other day I tried to send a "large" array via XPC; of the order of 200,000 entries. Usually, my application deals with…
koan
  • 3,596
  • 2
  • 25
  • 35
0
votes
1 answer

ASIHTTPRequestDelegate methods not called in XPC service

I am using the excellent ASIHTTPRequest inside an XPC service to fetch some data from the internet. I am creating a simple request. However, for some reason, it's delegate functions are not called. I have enabled ASIHTTPRequest's debugging log and…
Niv
  • 2,294
  • 5
  • 29
  • 41
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
0
votes
1 answer

Using FSEventStream within XPC service does not work

I'm having big troubles using FSEventStream in my XPC service (code below). Service starts, stream is created, but callback function is never called. When I copy exactly the same code to my main application and run it, it works just fine. What may…
Matthes
  • 515
  • 5
  • 12
0
votes
1 answer

XPC on Mac osx implementation

XPC service not as a separate Target but an inbuilt class that implements listener delegate in the app.All examples I see online have separate target that make a xpc service tool and copies it to app resources folder for supporting incoming…
a k
  • 531
  • 5
  • 15
0
votes
1 answer

Threads and XPC

I want to run multiple concurrent logical operations within an XPC service. Thing is, though, XPC services are singletons — either they’re running, or they’re not. Can I use NSThread, dispatch queues, or similar to simulate this? The application…
wjk
  • 1,219
  • 11
  • 27
0
votes
1 answer

Adopting NSSecureCoding with opaque types

I have an Objective-C class that needs to adopt NSSecureCoding for transport across an XPC connection. The class has a couple properties that are opaque types (dispatch_queue_t and dispatch_group_t). How would I go about implementing -initWithCoder:…
Andrew
  • 7,630
  • 3
  • 42
  • 51
0
votes
2 answers

Cancelling XPC connection in -dealloc when cancellation handler references self

In my project I am using the C-based XPC API, since NSXPCConnection is not available on the platform I am targeting. Currently I use a weak reference to prevent the connection handler block from retaining self, as follows: __block…
ProtoSphere
  • 209
  • 3
  • 9
0
votes
0 answers

How to grab selected HTML from browser and pull into my app

I'd like to create a Cocoa app that is able to grab selected text from a website in a third-party browser (in other words, NOT from an embedded webkit instance running within my own app) and then store it in my app's database. From what I can tell,…
maxedison
  • 17,243
  • 14
  • 67
  • 114
0
votes
1 answer

NSXPCConnection or XPCKit

There are two choices (or at least I know two) for implementing XPC client and service for Mac. NSXPCConnection which is introduced in 10.8 and XPCKit. What should I use to implement helper app that resides in menu bar and uses XPC to read data from…
Vladimir Prudnikov
  • 6,974
  • 4
  • 48
  • 57
0
votes
2 answers

Seeing available dictionaries in a XPC service daemon?

There are a bunch of launch daemons and agents running on an osx machine which support xpc. To see whether they support IPC over xpc, I look for any xpc functions, particularly xpc_connection_create. My understanding is that in order to speak with…
-1
votes
1 answer

How to keep a macOS Launch Agent open until the app that requested the service is closed?

Working on my first macOS Launch Agent using XPC. I need the process that is delivering the service to be started by launchd and to then stay running until the client process that made the initial call is closed. I have set KeepAlive to true in the…
chemFour
  • 140
  • 7
-1
votes
1 answer

How to stop MacOS XPC service

Opening macOS Console and looking at the System Log i ran into this error message that keeps repeating itself indefinitely: com.apple.xpc.launchd[1] (com.macpaw.CleanMyMac4.HealthMonitor[21558]): Service exited with abnormal code:…
nn65
  • 31
  • 1
  • 1
  • 7
1 2 3
11
12