Fri 14 Jan 2005 03:38:51 PM UTC, original submission:
The only validation method is -validateVisibleColumns, and it (obviously :) validates only visible columns. This matches the documentation and behavior on OPENSTEP (thanks to Gürkan Sengün for testing), so it isn't a bug per se, just a lack of feature.
However, this means that NSSavePanel's -validateVisibleColumns also validates only visible columns (as documented), and this means that -setDelegate: can't verify non-visible columns, and that's a bug.
Can be reproduced by creating an NSSavePanel with a popup button for selecting which file types should be displayed, selecting some file in a directory that has files that will be filtered away, scrolling back to the root without changing the selection (the directory needs to be deep enough that it isn't visible when you do this), and changing the filtering using the popup. Even if the popup action method calls -validateVisibleColumns, the files in the deep directory will still be displayed. (this is "tests/gui/NSSavePanel/setDelegate_reload.m" in the 'new' test suite)
So, do we ignore the documentation and make -validateVisibleColumns validate all columns (name won't make sense, but then, why would you ever want to validate only the visible columns?), or do we add new -validate[All?]Columns methods?
|