Re: Communicating with Privileged Helper Tool

2016-01-07 Thread Damien DeVille
eplying. > >> On 23 Dec 2015, at 5:18 pm, Damien DeVille wrote: >> >>> Unfortunately, this gives me the exact same issue: >> >> How are you creating the other end of the connection? The remote port will >> just attempt to connect to the local port and

Re: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?

2016-01-22 Thread Damien DeVille
Hey Motti, Could you maybe have a Cocoa app in your pref pane bundle that could talk to the privileged daemon? You would launch it from the pref pane, it would bless the tool on your behalf and you would communicate between the privileged app and the pref pane via the helper app? That’s defini

Re: NSImage drawInRect deadlock

2016-08-09 Thread Damien DeVille
You could change your code to use `NSBlockOperation`. You would then have an `NSOperationQueue` on which you could set the `maxConcurrentOperationCount` to whatever number makes sense for you. Damien On Tue, Aug 9, 2016, at 05:38 AM, Andrew Keller wrote: > Am 08.08.2016 um 8:12 nachm. schrieb Kyl

Re: iOS app groups sharing SQLite databases, notifications

2017-01-26 Thread Damien DeVille
I haven’t been using SQLite directly in an app group but I’m using Core Data (with a SQLite store type), which is supported by Apple and works fine (they’ve also recently added `+[NSManagedObjectContext mergeChangesFromRemoteContextSave:intoContexts:]` that makes merging Core Data changes from anot

Re: Debugging a privileged helper

2017-01-26 Thread Damien DeVille
Are you specifying the MachService you use for your XPC connection in your launchd job? On Thu, Jan 26, 2017, at 10:30 AM, John Brownie wrote: > I have a working app in Objective-C that has a privileged helper. I am > creating a different app, this time in Swift, and need a privileged > helper.