[Openmcl-devel] Making a c-style array

Arthur Cater arthur.cater at ucd.ie
Wed Feb 22 03:20:46 PST 2023


To use #/elementAtIndex:associatedPoints: the Apple docs say
- (NSBezierPathElement <https://developer.apple.com/documentation/appkit/nsbezierpathelement>)elementAtIndex:(NSInteger <https://developer.apple.com/documentation/objectivec/nsinteger>)index 
                     associatedPoints:(NSPointArray <https://developer.apple.com/documentation/foundation/nspointarray>)points;
Parameters

index
The index of the desired path element.

points
On input, a C-style array containing up to three NSPoint data types, or NULL if you do not want the points. On output, the data points associated with the specified path element.



So I now understand that ccl’s make-heap-ivector lets me create an array, but I don’t understand how to pass it an appropriate element-type for accommodating NSPoints. Can anyone help please?
Arthur

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20230222/d2cbc79d/attachment.htm>


More information about the Openmcl-devel mailing list