Many developers are confused by Objective-C’s message sending semantics when they first try out the language. The message sending semantics are what make it possible to ‘call’ a method on a null object. You’re not actually calling a method as opposed to sending a message to somewhere that doesn’t have an address.
You shouldn’t have to worry about understanding Objective-C message sending if you’re building an app in Swift. That’s why the latest release of Swiftify’s Objective-C to Swift Converter comes with great improvements to how we handle message sending.
Handling messages to property getters
In Objective-C, a property is just syntactic sugar around a method, and it can be called as if it were a method.
Comments
0 comments
Please sign in to leave a comment.