• 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
Re: NSSavePanel panel:shouldShowFilename:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel panel:shouldShowFilename:


  • Subject: Re: NSSavePanel panel:shouldShowFilename:
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 15 Nov 2010 15:48:57 -0800

On Mon, Nov 15, 2010 at 3:41 PM, Stephen Blinkhorn
<email@hidden> wrote:
> Hello,
>
> Something doesn't seem right here.
>
> Returning NO for NSSavePanel's panel:shouldShowFilename: delegate will grey
> out/de-activate an item in the file browser but the item can still be
> selected and doing so copies the file name string into the Save As: text
> field.
>
> Is this the expected behaviour?  I'd expect that returning NO would prevent
> the user from selecting that item in any way.  Which it does for folders at
> least.

Yes. Try it yourself: Open TextEdit, save the document, and then
choose Save As. The original location will be there but grayed out.
You can still select it and choose to save, and the app will ask you
if you want to overwrite the existing file.

It doesn't make sense for individual files to be "unsaveable," unlike
open dialogs in which it makes perfect sense for files to be
"unopenable." So the gray appearance is used to denote that files
already exist, while directories remain enabled to indicate
navigability.

--Kyle Sluder
_______________________________________________

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

References: 
 >NSSavePanel panel:shouldShowFilename: (From: Stephen Blinkhorn <email@hidden>)

  • Prev by Date: Re: NSSavePanel panel:shouldShowFilename:
  • Next by Date: Re: NSSavePanel panel:shouldShowFilename:
  • Previous by thread: Re: NSSavePanel panel:shouldShowFilename:
  • Next by thread: Re: NSSavePanel panel:shouldShowFilename:
  • Index(es):
    • Date
    • Thread