beginOpenPanel:forTypes:completionHandler woes

  • Dear All

    We have a sandboxed application and we are using NSDocument's beginOpenPanel:forTypes:completionHandler to install an accessoryView so that a user can select the file types that should be shown as active in the open Panel.

    We find two issues with this:

    1 - The accessory view installs correctly, but it is only visible when the open panel is not displaying iCloud contents. When the iCloud button is pressed, the file list shows as active only those files that match the selected type, but the accessory view is not displayed, meaning that a user cannot change this setting anymore (Explanation: our app saves several different document types, and we wanted the user to be able to filter which UTIs are active)

    2 - After a user selects a new file type, we call setAllowedFileTypes, but the list displayed by the panel only updates to show the correct file types as active when one forces an update by scrolling. calling validateVisibleColumns does not help.

    Are we expecting functionality that is not planned to be there or could we be doing something wrong? Anybody knows of some workarounds?

    Thanks for any advice in advance

    Kurt Sutter
    QuantumSoft
  • On Sun, May 5, 2013, at 08:41 PM, Kurt Sutter wrote:
    > Are we expecting functionality that is not planned to be there or could
    > we be doing something wrong? Anybody knows of some workarounds?

    Save panels understand having their allowed types updated on the fly,
    but the only filtering that open panels are supposed to do is whether
    the app can open the file.

    --Kyle Sluder
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today