Summary: Document based applications cannot load assigned
file types in open panel
Submitted by: gcasa
Submitted on: Mon 22 Jan 2018 07:30:15 PM EST
Severity: 5 - Blocker
Item Group: Bug
Assigned to: None
Discussion Lock: Any
NSOpenPanel/NSSavePanel is not properly setting "Ok" as active or not when the
file is selected in the table view and, thus, is not allowing the user to
select the file and then open it. If the user types the file name they can
open it, but it cannot be opened by selection.
Steps to reproduce:
1) open a document based application (Gorm, PRICE, etc)
2) Click on the Open menu
3) Navigate to a place where those file types exist
4) Attempt to click on a file of the type this app expects
RESULT: You will not be able to select the file and open it.
EXPECTED: You should be able to select and open the file and open it.
Selecting a file or directory should put it in the text panel, it is not
NSSavePanel.m:488 should set the value on selected change, but apparently
doesn't get there. _selectTextInColumn is never called!
I understand _selectText should be called as action on a selection change, but
it does not happen.
This behaviour was caused by an inconsistent target selection in NSSavePanel.
This worked until I recently corrected the way NSApplication finds the target
for an action. It should be fixed now and other similar cases should report
the issue on the command line to make it easier to detect and fix.