I want to use NSOpenPanel to allow users to select ONLY jpeg images (as well as browsing directories). I am using the delegate shouldEnableURL method to selectively enable directories and jpeg files - all others being disabled. The panel shows the disabled entries correctly and simple click selection doesn’t do anything.
HOWEVER by double-clicking a disabled file it IS selected!
This behaviour is contrary to what happens with buttons etc. Double-clicking a disabled button does nothing.
What am I doing wrong?