diff --git a/macos/Sources/Ghostty/GhosttyDelegate.swift b/macos/Sources/Ghostty/GhosttyDelegate.swift index 0ce3dced4..a9d255737 100644 --- a/macos/Sources/Ghostty/GhosttyDelegate.swift +++ b/macos/Sources/Ghostty/GhosttyDelegate.swift @@ -1,3 +1,5 @@ +import Foundation + extension Ghostty { /// This is a delegate that should be applied to your global app delegate for GhosttyKit /// to perform app-global operations. diff --git a/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift b/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift index 7eef69a71..509713309 100644 --- a/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift +++ b/macos/Sources/Ghostty/Surface View/SurfaceView+Transferable.swift @@ -50,7 +50,9 @@ extension UTType { static let ghosttySurfaceId = UTType(exportedAs: "com.mitchellh.ghosttySurfaceId") } +#if canImport(AppKit) extension NSPasteboard.PasteboardType { /// Pasteboard type for dragging surface IDs. static let ghosttySurfaceId = NSPasteboard.PasteboardType(UTType.ghosttySurfaceId.identifier) } +#endif