Skip to content

Help to compile it for MacOS 13 #2

@cbertelli

Description

@cbertelli

Hello,
thanks for the idea, I have several raster + vector picts, they are not anymore usable or convertible, so I would like very much to handle them with QuickDrawViewer. By now I run MacOS 13, I tried compiling your code, but Xcode spits two errors (only two!) about suggestedFileName that is not available before MacOS 14.
This is a snippet of undigested code:

/// Make it possible to transfer pictures into the clipboard, drag-and-drop.
extension QDPicture : Transferable {
  public static var transferRepresentation: some TransferRepresentation {
    DataRepresentation(exportedContentType: .pdf) {
      picture in picture.pdfData() as Data }.suggestedFileName { MakePdfFilename(picture: $0) }
  }
}

Can you suggest an alternative for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions