Disable NSSavePanel's New Folder button dynamically?
Disable NSSavePanel's New Folder button dynamically?
- Subject: Disable NSSavePanel's New Folder button dynamically?
- From: Kevin Wojniak <email@hidden>
- Date: Tue, 5 Oct 2010 11:17:22 -0700
I'm assuming the answer is no, as I've looked over the documentation, but just incase I missed something: is there a way to prevent NSSavePanel's "New Folder" button from being enabled on the fly?
For certain volumes, I don't want them to be chosen (which I can already do), but I also don't want New Folder to be enabled.
I attempted to try handling panel:directoryDidChange: and then calling setCanChooseDirectories:NO but that has no effect.
I think the best way to handle this using public APIs is to just detect the selected directory, and use setDirectory: to change it to something else (possibly showing an alert).
Any alternative advice would be appreciated.
Kevin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden