Re: [w3c/clipboard-apis] mac os doesn't recognize 'image/svg+xml' mime type (#105)

> > > > > I don't see how this relates to Clipboard API on the Web?
> > > > 
> > > > 
> > > > sorry posted in the wrong place; could you suggest the relevant repo to raise this?
> > > 
> > > 
> > > Probably stackoverflow.
> > 
> > 
> > Tried, nobody answered me. Seems w3c and apple didn't sort this out, and I don't know who or where to ask...
> > https://stackoverflow.com/questions/58795424/how-does-macos-handle-image-svgxml-type-mime-data-in-clipboard
> 
> How to use operating system's clipboard implementation (in Cocoa platforms they're called pasteboards) is completely outside the realm of what W3C deals with. W3C is a standard organization for the Web, not every operating system in existence.
> 
> As a disclaimer, I'm an engineer at Apple's WebKit team but I sill won't be able to answer your question because the underlying Cocoa API does not use MIME type as means of tracking types of data in pasteboard. Instead, [NSPasteboard](https://developer.apple.com/documentation/appkit/nspasteboardtype?language=objc) is used. There is a set of [globally known types](https://developer.apple.com/documentation/appkit/nspasteboardtype?language=objc) but your program can also register a [new UTI](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html#//apple_ref/doc/uid/TP40001319-CH204-SW4) and use that instead. Again, MIME type doesn't come into play.
> 
> If I were to guess this is an issue with Qt framework. It probably doesn't know what UTI to create for the SVG MIME type. But again, this topic is completely outside the scope of this repository.

I apologize again for asking in the wrong place. But it seems I stumbled into the right guy to ask:) There are many new terms for me. It sounds like although Qt takes arguments in the MIME type, but behind the scenes it converts to whatever the system understands. It just so happens that apple os (or NSPasteboard) don't have a standard type for svg, as I can't find it in the [list](https://developer.apple.com/documentation/appkit/nspasteboardtype?language=objc) you mentioned. But windows clipboard does use MIME so there's no problem?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/105#issuecomment-553638575

Received on Wednesday, 13 November 2019 22:43:27 UTC