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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to