core-foundation-rs icon indicating copy to clipboard operation
core-foundation-rs copied to clipboard

Encoding missing for CGPoint, CGSize, CGRect, etc, so can't be passed as arguments to msg_send

Open trsoluti opened this issue 4 years ago • 1 comments

The NS structures NSPoint, NSSize, NSRect, etc implement Encode for their types (for Mac OS only), but the core-graphic ones don't. These items are often passed to objc methods as arguments, so they need to conform.

trsoluti avatar Jul 18 '20 07:07 trsoluti

Clarification: they can be passed as arguments, but you can't use them to define a new ObjC method such as setFrame:(CGSize frame).

trsoluti avatar Jul 18 '20 08:07 trsoluti