It was another record quarter for the outgoing CEO, while Apple says it didn't expect the demand it's now seeing.