Apple and other technology companies led the stock market higher for the second day in a row Thursday.
The gains came a day after Apple took its worst fall in four years. In separate interviews, CEO Tim Cook said Apple will produce one of its Mac computers in the United States next year and will spend $100 million in 2013 to shift production of the line from China.
The Dow Jones industrial average rose 39.55 points, or 0.3 percent, to close at 13,074.04
The Standard & Poor's 500 index rose 4.66 points, or 0.3 percent, to close at 1,413.94.
The Nasdaq composite fell 15.57 points, or 0.5 percent, to 2,989.27.
For the week:
The Dow is up 48.46, or 0.4 percent.
The S&P 500 is down 2.24, or 0.2 percent.
The Nasdaq is down 20.97, or 0.7 percent.
For the year:
The Dow is up 856.48, or 7 percent.
The S&P 500 is up 156.34, or 12.4 percent.
The Nasdaq is up 384.12, or 14.7 percent.