Page 495 - NSMutableData class method of 'data'?


#1

In the code there is this section:

// Create a binary data container to pack all of the data NSMutableData *data = [NSMutableData data];
Can someone explain what’s happening on the right side of the assignment? In the documentation for NSMutableData, there is no class method called ‘data’


#2

Rats, that was a newbie question! NSMutableData doesn’t add a class method called data, so it had to be inherited. Like from NSData. Duh.