Created
October 5, 2013 02:53
-
-
Save toulouse/6836098 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
class action_disabler { | |
BOOL previousValue; | |
action_disabler(){ | |
previousValue = [CATransaction disableActions]; | |
[CATransaction setDisableActions:YES]; | |
} | |
~action_disabler() { | |
[CATransaction setDisableActions:previousValue]; | |
} | |
// Whatever bullshit you need to do to make it non-copyable or movable, I think. | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment