Communicating with a child process in app sandbox

2015-06-28 Thread SevenBits
For my latest app (sandboxed, and in development for the App Store), I am spawning a child process so that I can delete some files without involving the main application. I want to be able to send this child process the files to delete using IPC. I don’t want to use an XPC service, because from

Re: Communicating with a child process in app sandbox

2015-06-28 Thread Maxthon Chan
You can make your XPC service multithreaded - spawn one thread for each request. > On Jun 29, 2015, at 01:05, SevenBits wrote: > > For my latest app (sandboxed, and in development for the App Store), I am > spawning a child process so that I can delete some files without involving > the main a

Re: Communicating with a child process in app sandbox

2015-06-28 Thread Jens Alfke
> On Jun 28, 2015, at 10:05 AM, SevenBits wrote: > > For my latest app (sandboxed, and in development for the App Store), I am > spawning a child process so that I can delete some files without involving > the main application. Do you need a helper process for this? If you just want to keep t

Re: C Assert in BSD Static Library

2015-06-28 Thread Clark S. Cox III
> On Jun 23, 2015, at 17:24, Raglan T. Tiger wrote: > >> On Jun 23, 2015, at 5:48 PM, Scott Ribe wrote: >> >> Just to be clear, =1 is actually not necessary. > > > Yes. But of course Xcode puts DEBUG=1 in the debug configuration. > > Just doing belt and suspenders. > > What if the compile

Open program from custom schema link

2015-06-28 Thread Juanjo Conti
I have 2 questions. 1) If in XCode I set an URL type for my App: my-appx, once it's open for first time, it register to all browsers that it will handle links of the type myappx://something. Is it is suppose to call MyApp with "something" as argument? How do I read "something" from the run app? 2

NSUserDefaults allocation size and CALayer memory usage

2015-06-28 Thread Henrik Granaas-Helmers
Hi there, I am new to Apple development, and new to this list. I have two questions about memory on OS X. 1. NSUserDefaults seems to allocate 16 MB memory at load. I can't see myself using a megabyte—let alone 16 of those. It would be very interesting to know why it allocates so much, and if t

Swift 2.0 difficulty

2015-06-28 Thread Michael de Haan 
Hi All I am looking at Swift 2.0. The compiler has converted the code below to the “latest” Swift syntax. This causes the error shown. I have spent a few days trying to get this to compile. What is confusing to me, is that the code, listed last (func removeAnElemen…..) does compile ( all in Pl