Sub topic 11
Dragging files and sharing the clipboard
This chapter assumes you have already turned on Universal Control and can move the pointer from your Mac onto your iPad. It covers two ways to move content between the devices: drag and drop, and the shared clipboard. They look alike, but they rely on different features and fail in different ways.
Two mechanisms, two dependencies
Drag and drop and copy and paste often get treated as one capability. They are separate.
- Drag and drop is part of Universal Control. You pick up an item with the shared pointer, cross the screen edge onto the other device, and release it over an app that accepts it.
- The shared clipboard is called Universal Clipboard. It belongs to the Continuity family and depends on Handoff. It works without Universal Control. You can copy on an iPad using the iPad's own touch keyboard and paste on a Mac, with no shared pointer involved.
The practical result is that one can work while the other doesn't. If drag and drop stops working but paste still works, look at Universal Control settings. If the reverse happens, look at Handoff.
| Capability | Feature that provides it | Main settings it needs |
|---|---|---|
| Drag a file across the screen edge | Universal Control | Pointer and keyboard setting in Displays, same Apple Account, Wi-Fi and Bluetooth on |
| Copy on one device, paste on another | Universal Clipboard (Handoff) | Handoff on both devices, same Apple Account, Wi-Fi and Bluetooth on |
| Move a window onto the iPad screen | Sidecar | Sidecar connection; the iPad acts as a display |
Sidecar is not a file transfer tool. In a Sidecar session the iPad shows Mac apps, and those apps still run on the Mac. Nothing is copied to the iPad.
Dragging files with Universal Control
Drag and drop between a Mac and an iPad follows the same steps in either direction.
- Move the pointer onto the iPad so it appears on the iPad screen.
- Open an app on the iPad that can receive the item, such as Files, Notes, Mail, Messages, or a document app.
- Move the pointer back to the Mac and press and hold on the item you want to move, for example a file in a Finder window.
- Drag it past the screen edge. The item travels with the pointer onto the iPad.
- Release it over the target area in the iPad app.
For the reverse direction, press and hold an item on the iPad with the shared pointer. Drag it across to the Mac and release it over a Finder window, the desktop, or a Mac app.
What decides whether a drop works
The receiving app decides. The destination iPad app must accept the kind of item you drop on it. The iPad shows whether a drop is accepted as you hover.
- Dropping a photo on a Notes page inserts it. Dropping the same photo on an app that doesn't take images does nothing.
- Dropping a PDF into the Files app saves it to the folder under the pointer.
- Dropping text into a text field inserts the text. Dropping a file into a text field generally doesn't.
Most drop failures come down to the target not accepting that item type. When a drop fails, first try a different target such as a Files folder or a Notes page. If that works, the connection is fine and the original app is the limit.
Large files and slow transfers
A file moves over the same wireless link that Universal Control uses. A large video can take noticeable time to arrive, and the receiving app may show a progress indicator after you release the item. Don't move the pointer away and close the destination app before the transfer finishes. If the transfer matters, wait until the file is visible in its destination folder before you delete the original.
Sharing the clipboard with Universal Clipboard
Universal Clipboard needs no special gesture. Copy on one device with the normal command, then paste on the other.
- On the first device, select the content and copy it. On a Mac use Command-C. On an iPad use the Copy command from the menu or the keyboard.
- Within a short time, go to the second device.
- Paste. On a Mac use Command-V. On an iPad use Paste from the menu or Command-V on a keyboard.
The clipboard holds the most recent copy. A new copy on any device replaces the earlier one.
Requirements
Both devices must meet all of these conditions.
- They are signed in with the same Apple Account.
- Wi-Fi and Bluetooth are on.
- Handoff is on.
- They are near each other.
Handoff is set separately on each device.
- On the Mac, open System Settings, choose General, then AirDrop & Handoff. Turn on the option that allows Handoff between this Mac and your iCloud devices.
- On the iPad, open Settings, choose General, then AirPlay & Handoff. Turn on Handoff.
Universal Control and Universal Clipboard share most prerequisites. This is why a broken Wi-Fi or Bluetooth setting, or a mismatched account, tends to break both at once.
What can be copied
Text, images, and files can be copied and pasted between devices. Rich content such as formatted text usually keeps its formatting when the receiving app supports it. Some apps flatten it to plain text. Pasting a file works when the destination can accept files. In the Finder, you can paste a file that was copied from the iPad Files app.
Universal Clipboard also does not carry sensitive content that an app has marked as private. Password managers, for example, often prevent their copied values from leaving the device. If a paste yields nothing, the source app may have blocked it on purpose.
Inspecting the clipboard from Terminal
You can see what the Mac clipboard holds by using the pbcopy and pbpaste commands. They read and write the same clipboard that Command-C and Command-V use.
printf 'Meeting notes for Friday' | pbcopy
pbpasteThe first line puts text on the Mac clipboard. The second prints the current clipboard text. To test the incoming direction, copy a short piece of text on the iPad and run pbpaste in Terminal soon afterward. If Universal Clipboard is working, the text from the iPad should be printed. If you get your previous content instead, the iPad copy did not arrive.
Comparing the two mechanisms in practice
Choose the mechanism by the shape of the job.
- Use drag and drop to place a specific file in a specific app or folder. You see the target as you drop onto it, and you control where the file lands.
- Use copy and paste for snippets of text, links, and single images. It needs no cross-screen pointer movement, and it works even when the pointer can't cross the screen edge.
- If you need to move many files, or the files are large, consider AirDrop or a shared cloud folder. Neither Universal Control nor Universal Clipboard is designed for bulk transfer.
Common failures
| Symptom | Likely cause | What to check |
|---|---|---|
| The pointer crosses to the iPad but a dragged item snaps back | The target app rejects the item type | Try Files or Notes as the target |
| Paste does nothing on the second device | Handoff is off on one device, or the copy is too old | Turn on Handoff on both devices, then copy again and paste quickly |
| Paste works but drag does not | Universal Control is off or interrupted | Re-enable the pointer and keyboard setting in Displays |
| Drag works but paste does not | Handoff is off, or the accounts differ | Compare the Apple Account on both devices |
| Both fail together | Wi-Fi or Bluetooth is off, or the devices are far apart | Turn on both, move the devices close, and toggle Wi-Fi once |
If both fail together, turn Bluetooth off and on again on both devices. This often restores the link without a restart.
Exercise
Your Mac pointer crosses onto the iPad and you can drag a PDF into the Files app, but text copied on the iPad never pastes on the Mac. Which feature is failing, and what is the first setting you check?
Show answer
Universal Clipboard is failing, because drag and drop (Universal Control) works. Check that Handoff is on for both devices (Mac: System Settings, General, AirDrop & Handoff; iPad: Settings, General, AirPlay & Handoff). Then confirm that both devices use the same Apple Account.
Exercise
You drag a photo from a Finder window onto the iPad and release it over an app, but nothing is inserted. Pointer movement between the devices works normally. What should you try next to find out whether the connection or the app is the problem?
Show answer
Drop the photo on a target that is known to accept images, such as a Notes page or a Files folder. If that drop works, the connection is fine and the first app does not accept that item type. If it also fails, check the Universal Control setting and the wireless connection.