Re: XPC Question

2018-09-18 Thread Sandor Szatmari
Alistair, > On Sep 18, 2018, at 13:25, Alastair Houghton > wrote: > >> On 18 Sep 2018, at 16:48, Sandor Szatmari >> wrote: >> >> Thanks Alistair! >> >> Anyone else have additional info? > > Well, Cocoa has Distributed Objects, which you could use for this purpose. > DO has some

Re: touchesMoved value setting

2018-09-18 Thread Eric Dolecki
Ahhh thanks!! The distance is being accumulated appropriately. Sent from my iPhone X. From: Quincey Morris Sent: Tuesday, September 18, 2018 10:33 AM To: Eric E. Dolecki Cc: Cocoa Dev Subject: Re: touchesMoved value setting On Sep 18, 2018, at 06:15 , Eric E.

Re: XPC Question

2018-09-18 Thread Alastair Houghton
On 18 Sep 2018, at 16:48, Sandor Szatmari wrote: > > Thanks Alistair! > > Anyone else have additional info? Well, Cocoa has Distributed Objects, which you could use for this purpose. DO has some interesting behaviour (in particular, watch out - it can throw exceptions, even when calling

Re: XPC Question

2018-09-18 Thread Sandor Szatmari
Thanks Alistair! Anyone else have additional info? Sandor > On Sep 18, 2018, at 08:59, Alastair Houghton > wrote: > >> On 18 Sep 2018, at 13:37, Sandor Szatmari >> wrote: >> >> Can you do XPC RPC over an IP connection? Or, in other words… Can you do >> XPC between two computers? > >

Re: touchesMoved value setting

2018-09-18 Thread Quincey Morris
On Sep 18, 2018, at 06:15 , Eric E. Dolecki wrote: > > Once the distance number gets high enough, I start to get tVal values of 2, > 3, 4, etc. I think my logic is messed up here. Yes, it’s messed up. Instead of this: >currentValue = currentValue ± tVal you need this: >currentValue =

Re: touchesMoved value setting

2018-09-18 Thread Eric E. Dolecki
I have a currentValue (Int). I have a distance of the moved. For every 20 pixels, increment or decrement the currentValue by 1. If I do this: let tVal = Int(distanceValue / 20) if increment { currentValue = currentValue + tVal if currentValue > maxValue { currentValue = maxValue } }

Re: touchesMoved value setting

2018-09-18 Thread Richard Charles
> On Sep 18, 2018, at 6:44 AM, Eric E. Dolecki wrote: > > I have a UI control that can be adjusted up and down using touch & drag. > I've been asked to provide a control value based on how far the drag is via > distance. So far so good. > > What my designer wants is a value change of every 20

Re: touchesMoved value setting

2018-09-18 Thread Alastair Houghton
> On 18 Sep 2018, at 13:44, Eric E. Dolecki wrote: > > I have a UI control that can be adjusted up and down using touch & drag. > I've been asked to provide a control value based on how far the drag is via > distance. So far so good. > > What my designer wants is a value change of every 20

Re: XPC Question

2018-09-18 Thread Alastair Houghton
On 18 Sep 2018, at 13:37, Sandor Szatmari wrote: > > Can you do XPC RPC over an IP connection? Or, in other words… Can you do XPC > between two computers? Not as far as I’m aware. As far as I know, XPC is built on top of Mach messaging, which in theory can be used across the network but IIRC

touchesMoved value setting

2018-09-18 Thread Eric E. Dolecki
I have a UI control that can be adjusted up and down using touch & drag. I've been asked to provide a control value based on how far the drag is via distance. So far so good. What my designer wants is a value change of every 20 pixels or so (control is 150px tall @ the moment) - so every 20

XPC Question

2018-09-18 Thread Sandor Szatmari
Can you do XPC RPC over an IP connection? Or, in other words… Can you do XPC between two computers? Thanks, Sandor ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact