Question about description


i was a bit stumped on this chapter so ive been going thru again to understand how the code was laid out. im following so far but im totally confused on what happens with

NSLog(@"Employees: %@", employees); can someone explain how its able to print out all the items? I understand that its a method in the NSObject class, but im not understanding how just calling %@ has it print out.


description is defined in NSObject, but NSArray overrides it.

In NSArray’s implementation of description, it goes through the array sending each object the message description, and then it puts them all together as one long string.

Fun way to create an infinite loop: Put an array inside itself. Then ask it for its description.