Objective-C

9 06, 2018

Objective-C Messaging

By | 2018-06-09T04:33:29+00:00 June 9th, 2018|iOS Programming, Objective-C|0 Comments

Objective-C used to be the go-to programming language when developing software for iOS or macOS.  Objective-C was built on top of the C-language and added object-oriented capabilities and message passing between objects.  As it’s a superset of C, we can use C code in Objective-C classes.  Message passing is a technique used for invoking behavior by sending messages to an object rather than invoking the method by name.  Messaging in Objective-C follows a well-known design pattern called Chain of Responsibility. The main idea is to pass a request to a list of linked objects. The request travels until one of [...]