concept implementation in category ios

appears as: Implementation, implementation, The implementation, implementations, The implementation, n implementation, implementations
Objective-C Fundamentals

This is an excerpt from Manning's book Objective-C Fundamentals.

The tableView:numberOfRowsInSection: implementation isn’t notable. It returns the number of items present in the properties array (5). It makes use of a C preprocessor macro defined in listing 2.4 to determine this number, but more about that later.

The tableView:cellForRowAtIndexPath: implementation has a couple of changes. The first is a change in table view cell styles. You’re now requesting UITableViewCellStyleSubtitle, which provides an iPod application–style cell with two horizontal lines of text: a main one that’s black followed by a gray line designed to show additional details.

Message sending is somewhat slower than calling a function directly. Typically this overhead is insignificant compared to the amount of work performed in the method. The overhead is also reduced by some internal tricks in the implementation of objc_msgSend, which manages to reduce the amount of repetitive work performed in scenarios such as a message being sent to all objects in an array.

8.3.1. Methods, selectors, and implementations

In the previous section, a number of new concepts were introduced: method, selector, implementation, message, and message send. What exactly are these terms, and how do they relate to source code?