Say I have a CoreData entity "Point" with two properties x and y (both NSNumber).
How would a NSPredicate need to look like to let me find the closest Point to say a,b? for distance = sqrt((x-a)(x-a)+(y-b)(y-b))
While I could define a transient property that calculates a distance to a predefined point I can't see how I could programmatically change that point when launching a fetchrequest.
Any help would be greatly appreciated.