Skip to content

Instantly share code, notes, and snippets.

View dzenbot's full-sized avatar

Ignacio Romero Zurbuchen dzenbot

  • DZN Technologies
  • Canada
View GitHub Profile
@bradya
bradya / gist:0f17bb779efd92c3f7b5
Created January 28, 2015 02:38
Core Data queue abstraction
#pragma mark - Block Methods
/*
When we team switch, we want to completely stop in-progress data changes
E.g. if we're dumping the cache on Team A and you switch teams, we use
[SLKTeam currentTeam] throughout the app, and when that code executes, it'll
do stuff for the wrong team.
Core Data doesn't provide direct access to the MOC queues, so we implement
our own queues on top of the MOC queues which gives us the ability to