Last active
December 18, 2015 02:18
-
-
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).
This file contains hidden or 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
| 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