ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.8k stars 65 forks source link

Ensure architecture differences are respected #17

Open ryanmcgrath opened 2 years ago

ryanmcgrath commented 2 years ago

From: https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code

  • The NSTextAlignment enumeration uses different numerical values for some constants on arm64 and x86_64 architectures. When referring to constants using numerical values, validate that you use the correct values on each architecture.
  • The NSImage.ResizingMode and UIImage.ResizingMode enumerations uses different numerical values for some constants on arm64 and x86_64 architectures. When referring to constants using numerical values, validate that you use the correct values on each architecture.

I know some of these are handled already, but it's worth doing another pass to make sure.