Type Alias

NSPoint

A point in a Cartesian coordinate system.

Declaration

typedef CGPoint NSPoint;

Discussion

Prior to OS X v10.5 the coordinates were represented by float values rather than CGFloat values.

When building for 64 bit systems, or building 32 bit like 64 bit, NSPoint is typedef’d to CGPoint.

Topics

Managing Points

NSEqualPoints

Returns a Boolean value that indicates whether two points are equal.

NSMakePoint

Creates a new NSPoint from the specified values.

NSPointFromString

Returns a point from a text-based representation.

NSStringFromPoint

Returns a string representation of a point.

NSPointFromCGPoint

Returns an NSPoint typecast from a CGPoint.

NSPointToCGPoint

Returns a CGPoint typecast from an NSPoint.

Zero Constant

NSZeroPoint

An NSPoint structure with both x and y coordinates set to 0.

Related Types

NSPointArray

Type indicating a parameter is array of NSPoint structures.

NSPointPointer

Type indicating a parameter is a pointer to an NSPoint structure.

See Also

Geometry

CGFloat

The basic type for all floating-point values.

NSSize

A two-dimensional size.

NSRect

A rectangle.

NSAffineTransform

A graphics coordinate transformation.

NSEdgeInsets

A description of the distance between the edges of two rectangles.