• 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: keyUp falling through to window when sheet dismissed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keyUp falling through to window when sheet dismissed


  • Subject: Re: keyUp falling through to window when sheet dismissed
  • From: "Kyle Sluder" <email@hidden>
  • Date: Tue, 21 Oct 2008 15:36:51 -0400

On Tue, Oct 21, 2008 at 1:43 PM, Ken Worley <email@hidden> 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
_______________________________________________

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

  • Follow-Ups:
    • Re: keyUp falling through to window when sheet dismissed
      • From: Ken Worley <email@hidden>
References: 
 >keyUp falling through to window when sheet dismissed (From: Ken Worley <email@hidden>)

  • Prev by Date: Re: Strange Tiger incompatability
  • Next by Date: Re: Putting an image on a CALayer
  • Previous by thread: keyUp falling through to window when sheet dismissed
  • Next by thread: Re: keyUp falling through to window when sheet dismissed
  • Index(es):
    • Date
    • Thread