macos: fix iOS builds

This commit is contained in:
Mitchell Hashimoto
2025-12-28 14:39:41 -08:00
parent be97b5bede
commit 7b743164ef
2 changed files with 4 additions and 0 deletions

View File

@@ -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.

View File

@@ -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