NSPointFromString(_:)
Returns a point from a text-based representation.
Declaration
func NSPointFromString(_ aString: String) -> NSPointParameters
- aString:
A string of the form “{x, y}”.
Return Value
If aString is of the form “{x, y}” an NSPoint structure that uses x and y as the x and y coordinates, in that order.
Discussion
If aString only contains a single number, it is used as the x coordinate. If aString does not contain any numbers, returns an NSPoint object whose x and y coordinates are both 0.