Apple was saved because it abandoned all its pre-1997 software and adopted NEXTSTEP, which Jobs created.