I think in some ways Microsoft lost its dominance by focusing on the wrong competition. Microsoft Bing is a great example of Microsoft trying to become a company it wasn't. (i.e. Google)
In my perspective, Apple dialed in it's focus, avoided the same pitfalls, and came out a dominant player in a market not many were focused to innovate on. (i.e. smartphones).