For a company that is supposed to have missed the biggest tech shift in a generation, Apple is having a remarkably good run.