This is a perennial question. The truth, of course, is that Apple is neither. Apple is an experience company. That they create both hardware and software is part of creating the entire product experience.
This second paragraph is all it takes to hook me to read the rest of this yet another great post from John Gruber.