I wouldn't say a "secret recipe" per se, but it's obvious that Jobs and Apple realize and understand their unique position in the tech-electronics industry and have figured out how to leverage that position to differentiate the brand and the products from the competition. The key here is differentiation, which includes vertical integration of the software stack and industrial design of the hardware.
Essentially, Apple has found a niche and then they dominate it with a closed system that they control inside and out. From there, they keep growing the niche while having the flexibility in the gross margins so that they can lower it when they need to gain market share. Once they've created more demand than supply, they can cut costs and raise the price if necessary to get the margin they'd like to achieve.
It's a great business model but a company has to be able to differentiate with value-added features that customers are willing to pay for and a brand name that is highly desirable. Very few companies in any industry have the ability to do this.