In the last post we changed the communication between our classes to be based on the Key-Value Observation. As we could see KVO is not the best solution for our problem, but sometimes can be helpful, if we need to observe one particular object property changes. In this post I will modify the communication to ...
If you have ever worked with SQL queries and the aggregate functions (or in worst case with spreadsheet applications like Excel or Numbers), this topic will be familiar to you. It is usually overlooked, but the Key-Value Coding can also benefit from those functions on collections, like NSArray or NSSet. Obviously the type should support ...
So, you want to learn the language, but don’t want to buy a Mac? It is possible. Actually I have just downloaded the 2nd edition of the Swift Programming from Big Nerd Ranch, when I realised, that I don’t have access to my beloved Mac, only the company’s HP notebook. Free stuff First of all, ...
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 ...
Maybe it is not so obvious for most of the developers, but the documentation of your application and code is crucial in long term. Whoever has ever worked in code maintenance knows this. The general problem is with the documentation is that everybody hates to do it, especially when this somebody is in either rush ...
In this series of posts I would like to lead you through the most commonly used communication patterns in iOS development. I hope you have already heard about software design patterns. If your answer is no or never, the best advice I can give you to bookmark this blogpost and grab the basic knowledge about ...