Skip to content

Instantly share code, notes, and snippets.

@toulouse
Created October 5, 2013 02:53
Show Gist options
  • Save toulouse/6836098 to your computer and use it in GitHub Desktop.
Save toulouse/6836098 to your computer and use it in GitHub Desktop.
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