Closed ngmeyer closed 3 years ago
See best practices document from Apple here: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithProtocols/WorkingwithProtocols.html
As an example not conforming to NSObject protocol results in build errors if we attempt to get the class from the protocol e.g.:
for (id thing in things) { NSString *className = NSStringFromClass([thing class]); // build error ... }
Since the PR was merged, we can close that issue as solved
See best practices document from Apple here: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithProtocols/WorkingwithProtocols.html
As an example not conforming to NSObject protocol results in build errors if we attempt to get the class from the protocol e.g.:
for (id thing in things) {
NSString *className = NSStringFromClass([thing class]); // build error
...
}