Re: Key filtering in the NSSavePanel?
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