Returns an NSSize
from a text-based representation.
SDKs
- macOS 10.0+
- Mac Catalyst 13.0+
Framework
- Foundation
Declaration
Discussion
Scans a
for two numbers which are used as the width and height, in that order, to create an NSSize
struct. If a
only contains a single number, it is used as the width. The a
argument should be formatted like the output of NSString
, for example, @"{10,20}"
. If a
does not contain any numbers, this function returns an NSSize
struct whose width and height are both 0
.