CocoaDev

Edit AllPages

Foundation’s NSPoint structure, defined in NSGeometry.h

typedef struct {
CGFloat x;
CGFloat y; } NSPoint;

See NSPointFunctions for useful NSPoint stuff.

There is a pre-defined constant, NSZeroPoint, which is what you’d expect it to be.