You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common case is for an app to accept multiple content types (UTType). If we take a look at the example in https://developer.apple.com/documentation/coretransferable/filerepresentation, it imports a .mpeg4Movie. However, an app accepting a video will definitely want to accept .quickTimeMovie too. To do this, we need two separate instances of FileRepresentation with identical handling. It would be nice if FileRepresentation accepted multiple content types for when you have identical handling of them.
I’m aware I could abstract the handling out into a helper function which is called in both FileRepresentation, but there’s still some duplicate code and this feels like a common enough case to have some sugar for.
The text was updated successfully, but these errors were encountered:
Description
A common case is for an app to accept multiple content types (UTType). If we take a look at the example in https://developer.apple.com/documentation/coretransferable/filerepresentation, it imports a
.mpeg4Movie
. However, an app accepting a video will definitely want to accept.quickTimeMovie
too. To do this, we need two separate instances ofFileRepresentation
with identical handling. It would be nice ifFileRepresentation
accepted multiple content types for when you have identical handling of them.I’m aware I could abstract the handling out into a helper function which is called in both
FileRepresentation
, but there’s still some duplicate code and this feels like a common enough case to have some sugar for.The text was updated successfully, but these errors were encountered: