I have two types of objections: locations and history items. I'm trying to fetch locations which are attached to any history item, so my fetch predicate for the location is "history.@count > 0", which works fine.
I'd also like to sort the location objects with an NSSortDescriptor by the date of their latest history item, which as far as I can make out would be "[email protected]", this however throws the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Keypath containing KVC aggregate where there shouldn't be one; failed to handle [email protected]'
Halp plox?