I\'d like to return a Cartesian coordinate (x, y), as two ints. The only way I see is to create a class and return an instance of it.
int
How to return two value
You can either return one value directly and return another by reference, as shown in gs's answer, or create a struct type and return that. For example, Cocoa already includes a type to identify points on a 2D plane, NSPoint.