Get the PS4 controller into pairing mode by pressing the menu (Playstation icon) and share buttons until the LED flashes.
Connect to Mac OS
Go to the System Preferences application by clicking the Apple icon in the top left menu bar. Click on the Bluetooth icon. Search and click on the connect button on the Wireless Controller.