Apple posts record revenue, net income