Re: Key filtering in the NSSavePanel?

2008-10-10 Thread Fritz Anderson

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 -- 


___

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]


Key filtering in the NSSavePanel?

2008-10-10 Thread Bob Stuller

Folks, Greetings!

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


Peace,
Bob




As soon as we started programming, we found to our surprise that it  
wasn't as easy to get programs right as we had thought.  Debugging had  
to be discovered.  I can remember the exact instant when I realized  
that a large part of my life from then on was going to be spent in  
finding mistakes in my own programs.

-- Maurice Wilkes discovers debugging, 1949

___

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]