Re: in-memory filter by Expression accessing regular methods

2017-04-18 Thread Maik Musall
Hi Michael, in the meantime I remembered I had already implemented NSKeyValueCodingAdditions for my DataObject subclass, so I just used that :-) Maik > Am 18.04.2017 um 18:23 schrieb Michael Gentry : > > Hi Maik, > > I'm late to this, but you likely could've used > obj.readProperty("responsib

Re: in-memory filter by Expression accessing regular methods

2017-04-18 Thread Michael Gentry
Hi Maik, I'm late to this, but you likely could've used obj.readProperty("responsibleUser") as well. mrg On Sun, Apr 16, 2017 at 7:13 AM, Musall, Maik wrote: > Wow, Mark, good guess! > > That's it. Added a get… method around each part of the path's accessed > methods, and it works. Didn't occ

Re: Committed snapshot

2017-04-18 Thread Mark Wardle
Thanks Michael. Looks good - I'll give it a whirl. Mark -- Dr. Mark Wardle Consultant Neurologist, Cardiff, UK (Sent from my mobile) > On 18 Apr 2017, at 15:57, Michael Gentry wrote: > > Hi Mark, > > I haven't done it for a specific property, but I did it for a DataObject. > Perhaps you ca

Re: Committed snapshot

2017-04-18 Thread Michael Gentry
Hi Mark, I haven't done it for a specific property, but I did it for a DataObject. Perhaps you can get inspiration from: https://gist.github.com/mrg/4dce22b67175c27f4047#file-cayenneutils-java-L73 Note: This was written for Cayenne 3.0, so 3.1/4.0 might be slightly different. mrg On Tue, Apr

Re: in-memory filter by Expression accessing regular methods

2017-04-18 Thread Mark Wardle
Glad it worked! Mark -- Dr. Mark Wardle Consultant Neurologist, Cardiff, UK (Sent from my mobile) > On 16 Apr 2017, at 12:13, Musall, Maik wrote: > > Wow, Mark, good guess! > > That's it. Added a get… method around each part of the path's accessed > methods, and it works. Didn't occur to m

Committed snapshot

2017-04-18 Thread Mark Wardle
Is there a simple way of getting the value of a property as committed rather than the current property value? Many thanks, Mark