NSSavePanel and hidden extension

The canSelectHiddenExtension parameter for NSSavePanel displays a “Hide extension” checkbox.
But how to retrieve its value after the panel is dismissed?

i tried savePanel's extensionHidden() as boolean but it returns an error.

You probably need to check if canSelectHiddenExtension is true, first.

Found it!
My mistake was that I didn’t see, on the Apple’s reference page, that the getter is:


As setCanSelectHiddenExtension: is set to true in the panel creation handler, canSelectHiddenExtension() is always true.