Tempting new MacBooks is one reason for Mac sales going up strongly – but Apple can also thank Microsoft.