My app uses a file dialog (i.e. NSOpenPanel) to allow the user to choose audio files such as mp3's.
Now, the open panel works just fine when browsing through files normally, i.e. it displays all mp3 files and allows them to be selected.
However, if, the search bar within the dialog is used to search for songs, and the results are files that have ID3 metadata (artist/title), then, the dialog's search results hide the file extension. This is a problem because I'm no longer able to select a perfectly valid mp3 file just because it has ID3 metadata and the dialog is hiding its extension in the search view. Please see image below.
This is a bad user experience, because, if the user has a large collection of songs, he/she will definitely use the search feature within the dialog when choosing files, and, if most of his/her songs have ID3 tags, those files' extensions will be hidden, thus preventing the user from selecting those files in the search results.
I checked the behavior of other audio apps like Vox, iTunes, and VLC. Vox has identical behavior to my app, because it filters the allowed file types to audio file types. However, iTunes and VLC allow any kind of files to be chosen, so they get around this problem. However, allowing all file types is a really ugly workaround. I would, ideally, like to be able to filter my allowed file types (by extension), and yet allow the user to select files in search results.
I checked all properties of NSOpenPanel to see if I can tweak the behavior. But, I didn't see anything of help.
Please help. Thank you.
Now, the open panel works just fine when browsing through files normally, i.e. it displays all mp3 files and allows them to be selected.
However, if, the search bar within the dialog is used to search for songs, and the results are files that have ID3 metadata (artist/title), then, the dialog's search results hide the file extension. This is a problem because I'm no longer able to select a perfectly valid mp3 file just because it has ID3 metadata and the dialog is hiding its extension in the search view. Please see image below.
This is a bad user experience, because, if the user has a large collection of songs, he/she will definitely use the search feature within the dialog when choosing files, and, if most of his/her songs have ID3 tags, those files' extensions will be hidden, thus preventing the user from selecting those files in the search results.
I checked the behavior of other audio apps like Vox, iTunes, and VLC. Vox has identical behavior to my app, because it filters the allowed file types to audio file types. However, iTunes and VLC allow any kind of files to be chosen, so they get around this problem. However, allowing all file types is a really ugly workaround. I would, ideally, like to be able to filter my allowed file types (by extension), and yet allow the user to select files in search results.
I checked all properties of NSOpenPanel to see if I can tweak the behavior. But, I didn't see anything of help.
Please help. Thank you.