Skip to content

Instantly share code, notes, and snippets.

@tj-devel709
Created August 21, 2020 18:00
Show Gist options
  • Save tj-devel709/e58b1cb807805755a10d24c3e5d5ee26 to your computer and use it in GitHub Desktop.
Save tj-devel709/e58b1cb807805755a10d24c3e5d5ee26 to your computer and use it in GitHub Desktop.
~~~~~~~~Objective C~~~~~~~~~~~~
// Make the receiver the active drawing appearance and perform the block.
// Saves and restores the previous current appearance.
- (void)performAsCurrentDrawingAppearance:(void (NS_NOESCAPE ^)(void))block API_AVAILABLE(macos(11.0));
~~~~~~~~C# Binding (outside of interface)~~~~~~~~~~~~
delegate void ChangeReceiver (null);
~~~~~~~~C# Binding (later, inside the interface)~~~~~~~~~~~~
[Mac (11,0)]
[Export ("performAsCurrentDrawingAppearance:")]
void PerformAsCurrentDrawingAppearance (ChangeReceiver receiver);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment