Comments on: IPC Made Easy: Introducing XPC and NSXPCConnection http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/ Thoughts on computer science and software from [self] Sun, 03 Jan 2016 23:05:04 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Alain Duchesneau http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/comment-page-1/#comment-2909 Mon, 03 Feb 2014 02:31:08 +0000 http://blog.afewguyscoding.com/?p=409#comment-2909 To make it work, I had to comment the following line in GreetingListener.m:

if ( [[newConnection serviceName] isEqualToString: kServiceName] )

Don’t know if it’s normal but [newConnection serviceName] returns null in that method:

listener:shouldAcceptNewConnection:

???

]]>
By: David Stites http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/comment-page-1/#comment-2526 Sat, 01 Dec 2012 21:15:30 +0000 http://blog.afewguyscoding.com/?p=409#comment-2526 What part does not work for you Karl? Do the symbols not resolve? Does the code not run? I am going to need some more detail on what doesn’t work. I haven’t tried it on 10.8.2, just 10.8.

]]>
By: Karl http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/comment-page-1/#comment-2522 Sat, 01 Dec 2012 05:53:23 +0000 http://blog.afewguyscoding.com/?p=409#comment-2522 This doesn’t work for me either in OS X 10.8.2 and Xcode 4.5.2.

]]>
By: David Stites http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/comment-page-1/#comment-2375 Wed, 29 Aug 2012 00:19:20 +0000 http://blog.afewguyscoding.com/?p=409#comment-2375 The serviceName shouldn’t be null. You should file a bug at bugreport.apple.com and I will do the same.

]]>
By: Rares http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/comment-page-1/#comment-2372 Fri, 24 Aug 2012 22:22:18 +0000 http://blog.afewguyscoding.com/?p=409#comment-2372 I’ve figured it out.
For some reason in my context (XCode 4.4.1, OS X, 10.8.1)
in the GreetingListener the connection serviceName is always null and therefore the listener was never accepting the connection.

Any idea why the serviceName is null ?

]]>
By: Rares http://afewguyscoding.com/2012/07/ipc-easy-introducing-xpc-nsxpcconnection/comment-page-1/#comment-2371 Fri, 24 Aug 2012 20:21:44 +0000 http://blog.afewguyscoding.com/?p=409#comment-2371 Hi,

I am trying to run your hello app but it doesn’t work.
Clicking Say hello or Crash daemon doesn’t produce any results.

Am I missing anything ?

Thanks,
Rares

]]>