Created
August 21, 2020 18:00
-
-
Save tj-devel709/e58b1cb807805755a10d24c3e5d5ee26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~~~~~~~~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