Apple uses Windows to manufacture Macs on its production line, according to a photo tweeted by Apple chief executive Tim Cook.