Apple has been ramping up their R&D spending.
Here is a chart from last fall: http://techcrunch.com/2012/10/31/apples-rd-spending-climbs-1....
Their most recent quarterly filing showed a quarterly expense of $1 billion on R&D, a 33% increase from the same quarter a year ago.
To the extent that Apple's success is predicated on staying a couple steps ahead of the market, seems like a decent investment.