On Oct 21, 2008, at 1:36 PM, Kyle Sluder wrote:

On Tue, Oct 21, 2008 at 1:43 PM, Ken Worley <[EMAIL PROTECTED]> wrote:
It seems like the correct solution is to somehow avoid the keyUp being sent to the window/edit field after the sheet is dismissed, but I also wonder if
I'm catching the right event in the edit field.

Have you read the Text Editing Progamming Guide for Cocoa?  The
document specifically deals with handling the Return key:
http://developer.apple.com/documentation/Cocoa/Conceptual/TextEditing/Tasks/InterceptKeys.html

Basically, don't handle -keyUp: or -keyDown:.  Use the
-control:textView:doCommandBySelector: delegate method.

--Kyle Sluder


I somehow managed to miss that or I read it long enough ago that I forgot. Thanks much!

Ken

--
Ken Worley
Software Engineer, Tiberius, Inc.



_______________________________________________

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