• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Disable NSSavePanel's New Folder button dynamically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Disable NSSavePanel's New Folder button dynamically?
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Confused about floats
  • Next by Date: Re: Disable NSSavePanel's New Folder button dynamically?
  • Previous by thread: Re: JDBC from Cocoa or the like
  • Next by thread: Re: Disable NSSavePanel's New Folder button dynamically?
  • Index(es):
    • Date
    • Thread