Modal Panel Return Values

These constants define the possible return values for such methods as the runModal... methods of the NSOpenPanel class, which tell which button (OK or Cancel) the user has clicked on an open panel.

Declaration

enum {
   NSOKButton = 1,
   NSCancelButton = 0
};

Topics

Constants

NSCancelButton

The Cancel button

Deprecated
NSOKButton

The OK button

Deprecated