How do I create File Types ?

I want to set which files will be accepted as file drop over my app icon, but when I click File Types in OS X Build Settings, but when I click on Choose, all I get is an empty box with columns Type and Role.

Should I not get options there ? How do I set the app to accept text files, for instance, dropped over its icon, then opened in the App OpenDocument event ?

TIA

You must first create a FileTypes object for your app. In Xojo, go to the ‘insert’ button and choose ‘FileTypes’. Here you can select from a list of standard types or create your own custom types for your app’s files. Once you have done this, the types created will appear in the dlog you mentioned and their ‘roles’ can be set.

Thank you. I have done just that :slight_smile:

Now I have the file types set.

I had to edit the extensions to accomodate other text files, but I am set. :slight_smile: :slight_smile: :slight_smile:

Have you tried the other control to add from a longer list of file types ?

Yes, I did. I added enough type for the app to see all the files I needed :slight_smile:

I just had to add extensions for a Windows Internet shortcut file : .website