NSSavePanel and hidden extension

asobjc

(Jonas Whale) #1

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.


(Shane Stanley) #2

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


(Jonas Whale) #3

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

isExtensionHidden:

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

:wink: