NSOpenPanel selection

Discussion in 'Mac Programming' started by BollywooD, May 24, 2010.

  1. macrumors 6502

    Apr 27, 2005
    Surfers Paradise
    I have an NSOpenPanel, all working as it should, but I would like to be able to ignore selection, for a specific file.

    ie, I want to be able to select all files of the type "txt" but not the file:

    is this possible?
  2. Moderator emeritus


    Jun 15, 2000
    You can implement the delegate method panel:shouldEnableURL: to disable a file from being selected. If you need pre-10.6 compatibility you can also use panel:shouldShowFilename:

Share This Page