• 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: Key filtering in the NSSavePanel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key filtering in the NSSavePanel?


  • Subject: Re: Key filtering in the NSSavePanel?
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 10 Oct 2008 09:29:59 -0500

On 10 Oct 2008, at 7:15 AM, Bob Stuller wrote:

I have a need to restrict filenames coming out of a NSSavePanel. Is there anyway to hook in there & vet the keystrokes?

Not at the keystroke level, and that's a tricky level to work at; the usual philosophy on text fields is to stay out of the user's face until he's committed himself to his intended entry.


Tell us why the delegate methods panel:isValidFilename: and panel:userEnteredFilename:confirmed: don't suit your needs. Or, why you can't let the user press save, examine the results, and post an informative alert explaining the problem.

	— F

--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/ >


_______________________________________________

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: 
 >Key filtering in the NSSavePanel? (From: Bob Stuller <email@hidden>)

  • Prev by Date: appscript installation
  • Next by Date: Re: How a Controller in MainMenu.xib can send actions to a document object
  • Previous by thread: Key filtering in the NSSavePanel?
  • Next by thread: appscript installation
  • Index(es):
    • Date
    • Thread