Apple shares flirted with a record $400 yesterday, a day after the world’s most valuable tech firm posted blockbuster results, triggering a spate of brokerage upgrades.

The stock set a lifetime high as a new MacBook Air and “Mac mini” go on sale, the latter rivaling some of the cheaper offerings from Dell or Hewlett-Packard.

While iPhones remain the flagship device, the company touted its new line of Intel-powered Macs and the latest version of its operating software, the multitouch-enabled Mac OS X Lion.