Skip to content

Instantly share code, notes, and snippets.

@andyarvanitis
Last active December 18, 2015 02:18
Show Gist options
  • Select an option

  • Save andyarvanitis/5710047 to your computer and use it in GitHub Desktop.

Select an option

Save andyarvanitis/5710047 to your computer and use it in GitHub Desktop.
A snippet of code showing "global dot-notation" for Eero message sending (currently under evaluation).
parseQueue = OperationQueue.new
NotificationCenter.defaultCenter.addObserver: self,
selector: |addEarthquakes:|,
name: kAddEarthquakesNotif,
object: nil
...
self.parseQueue.addOperation: parseOperation
parseOperation.release // once added to the NSOperationQueue it's retained, we don't need it anymore
self.earthquakeData = nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment