Re: Very strange Xpc magic

2013-09-16 Thread Charles Srstka
On Sep 16, 2013, at 11:33 AM, "Gerriet M. Denkmann" wrote: > I also did some more testing. The magic does not lie in the NSLog() but in > the elapsed time. > > On my machine the sending of a message to remoteObjectProxy must NOT be done > earlier than ca. 180 μsec after [NSXPCConnection resum

Re: Very strange Xpc magic

2013-09-16 Thread Gerriet M. Denkmann
On 16 Sep 2013, at 23:13, Keary Suska wrote: > > On Sep 16, 2013, at 9:27 AM, Gerriet M. Denkmann wrote: > >> >> On 16 Sep 2013, at 22:21, Charles Srstka wrote: >> >>> On Sep 16, 2013, at 10:16 AM, "Gerriet M. Denkmann" >>> wrote: >>> If (and only if) MAGIC_BUG_REMOVAL is defined, I

Re: Very strange Xpc magic

2013-09-16 Thread Gerriet M. Denkmann
On 16 Sep 2013, at 23:16, Charles Srstka wrote: > On Sep 16, 2013, at 10:27 AM, "Gerriet M. Denkmann" > wrote: > >> Maybe I was not very clear. >> The problem is NOT that the helper app does not start. There just is no >> helper app, there is nothing which has a MachService called >> "somet

Re: Very strange Xpc magic

2013-09-16 Thread Gerriet M. Denkmann
On 16 Sep 2013, at 22:21, Charles Srstka wrote: > On Sep 16, 2013, at 10:16 AM, "Gerriet M. Denkmann" > wrote: > >> If (and only if) MAGIC_BUG_REMOVAL is defined, I see: >> Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a >> helper application." >> >> Makes sense, as t

Re: Very strange Xpc magic

2013-09-16 Thread Charles Srstka
On Sep 16, 2013, at 10:16 AM, "Gerriet M. Denkmann" wrote: > If (and only if) MAGIC_BUG_REMOVAL is defined, I see: > Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper > application." > > Makes sense, as there just is no helper application named: > "something.very.s

Re: Very strange Xpc magic

2013-09-16 Thread Gerriet M. Denkmann
On 16 Sep 2013, at 22:13, Charles Srstka wrote: > On Sep 16, 2013, at 3:22 AM, Gerriet M. Denkmann wrote: > >> ree =[ aCo remoteObjectProxyWithErrorHandler: ^(NSError *err) >> { >> // if helperName is not running >

Re: Very strange Xpc magic

2013-09-16 Thread Charles Srstka
On Sep 16, 2013, at 10:27 AM, "Gerriet M. Denkmann" wrote: > Maybe I was not very clear. > The problem is NOT that the helper app does not start. There just is no > helper app, there is nothing which has a MachService called > "something.very.silly". > > The problem is, that the error block,

Re: Very strange Xpc magic

2013-09-16 Thread Keary Suska
On Sep 16, 2013, at 9:27 AM, Gerriet M. Denkmann wrote: > > On 16 Sep 2013, at 22:21, Charles Srstka wrote: > >> On Sep 16, 2013, at 10:16 AM, "Gerriet M. Denkmann" >> wrote: >> >>> If (and only if) MAGIC_BUG_REMOVAL is defined, I see: >>> Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t

Re: Very strange Xpc magic

2013-09-16 Thread Charles Srstka
On Sep 16, 2013, at 3:22 AM, Gerriet M. Denkmann wrote: > ree = [ aCo remoteObjectProxyWithErrorHandler: ^(NSError *err) > { > // if helperName is not running > (always the case) and >

Re: Very strange Xpc magic

2013-09-16 Thread Gerriet M. Denkmann
On 16 Sep 2013, at 22:10, Charles Srstka wrote: > On Sep 16, 2013, at 3:22 AM, Gerriet M. Denkmann wrote: > >> In a new app (not document based) I inserted: >> >> #import "ZipProtocol.h" >> >> // ZipProtocol.h: >> @protocol ZipProtocol >> - (void)command:(NSString *)command withReply: (v