Contents

NSSize

A two-dimensional size.

Declaration

typealias NSSize = CGSize

Discussion

Normally, the values of width and height are non-negative. The functions that create an NSSize structure do not prevent you from setting a negative value for these attributes. If the value of width or height is negative, however, the behavior of some methods may be undefined.

Special Considerations

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

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

Topics

Managing Sizes

Zero Constant

Related Types

See Also

Geometry