Menu

#248 Support of setAccessoryView on OS X for -filetypes

open
5
2012-09-27
2012-09-27
No

The OS X versions of tk_get*File (Tk-Cocoa) do not display -filetypes comboboxes/menubuttons when the -filetypes option is specified. The list of possible files is merely filtered. On Linux and Windows a combobox/menubutton is shown and the user can choose a filetype.

On OSX, the setAccessoryView task of the NSSavePanel and NSOpenPanel do support this kind of feature:

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSSavePanel_Class/Reference/Reference.html#//apple_ref/occ/cl/NSSavePanel

http://www.cocoabuilder.com/archive/cocoa/295153-custom-nssavepanel.html

It looks as if this is relatively simple to implement and it would bring the OS X file dialogs to the same level as for the other platforms. If no -filetypes are specified, the accessory view could be hidden.

In the future, this accessory view culd even be used to display more options like checkboxes, text and other stuff.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.