This post has been updated, based on quellish recommendations, made on reddit. At the previous post of this series we made some changes of the code, in order to use the NSNotificationCenter for the asynchronous communication between the different parts of our system. NSNotification centre is a great tool if you want to set up ...
Recently I was building a data structure, where I store some dates of events in an array. When i was wondering, how to create a filter based on from and to dates, my first taught was: I just need to go through each element of the array an figure out, if it should be filtered ...
In the second post of the iOS communication patterns we are going through an implementation of an NSNotificationCenter based solution. This implementation won’t follow the best practices (more about it in the conclusion), I wanted to give you a good grasp of it. First of all, let’s talk about the Notification Center. If I want ...
Have you ever felt the stress and frustration when your issue navigator is full of warnings and errors? My advice is: Leave your bad feelings behind. Believe or not, compiler warnings and errors are your best friends. Why am I saying this? Because the ability to catch bug, or a possible problem in your code ...