Skip to content

CustomTypes improvement #1

Closed
Closed

Description

@Eisenhuth

the Exported UTIs in Xcode are filled out properly when using the CustomTypes asset to define a custom file type, however to have the files not greyed out when picking a file they also need to be added to Document Types

image

in this case the values to fix this are all already present in Exported UTIs

Name = Description from Exported UTI
Types = Identifier from Exported UTI

Additional document type properties
key: LSHandlerRank
type: String
value: Owner


great work on the feature - with this improvement it would work without having to change anything manually in Xcode, thanks and keep up the great work

Activity

  1. yasirkula commented on Jun 16, 2020

    @yasirkula
    Owner

    I had the grey out issue when setting "Conforms To" to public.content but if I set it to public.data or public.image, I can pick files without any issues while not having to fill the "Document Types". Actually, while testing the system with public.content, I did try filling "Document Types" to resolve the grey out issue but it didn't help in my case. I guess the issue is related to public.content somehow.

  2. Eisenhuth commented on Jun 16, 2020

    @Eisenhuth
    Author

    removing public.content fixes the greyed out files and lets me select them as expected - so I'll have to keep that in mind.

    the one nice part about having document types defined is that your app icon will show up for supported formats, instead of just a white file but in the grand scheme of things that's just a "nice to have"

  3. yasirkula commented on Jun 16, 2020

    @yasirkula
    Owner

    I've heard that "Document Types" adds the app to the list of applications presented in the file's "Open With" list. Since that option will simply launch the Unity app instead of launching the Unity app and then automatically opening the document, it may lead to bad UX.

  4. Eisenhuth commented on Jun 16, 2020

    @Eisenhuth
    Author

    good point - I agree, as it is right now the plugin is clean and does everything it sets out to do 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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