• 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: Beep when typing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beep when typing


  • Subject: Re: Beep when typing
  • From: "Bridger Maxwell" <email@hidden>
  • Date: Tue, 19 Feb 2008 11:04:09 -0700

Ah, thanks for that.  I guess I was using keyUp instead of keyDown because
that is usually how you handle mouse events.  Stupid of me, but in my
defense it was about 5:00 am when I wrote it.
  Thank You,
    Bridger Maxwell

On Feb 19, 2008 10:25 AM, John Stiles <email@hidden> wrote:

>  Moreover, why aren't you accepting letters on the -keyDown:?
> Typed characters should appear as soon as the user presses the key; it
> should not wait until the key is released. Otherwise the app will seem
> off-kilter or laggy.
>
>
> Jonathan del Strother wrote:
>
> On Feb 19, 2008 12:13 PM, Bridger Maxwell <email@hidden> <email@hidden> wrote:
>
>
>  Hello,  I have an application that uses a CATextLayer almost as a text entry
> field by using the keyUp event.  It works great, except that my computer
> beeps every time I type a character.  Did I leave something out to let the
> system know I used the keystroke?  Here is my script:
>
>
> - (BOOL)acceptsFirstResponder {
>
>     return YES;
>
> }
>
>
> - (void)keyUp:(NSEvent *)theEvent {
>
>     [self interpretKeyEvents:[NSArray arrayWithObject:theEvent]];
>
> }
>
>
> - (void)insertText:(id)string {
>
>     [_corkBoardController insertText:string]; //Here I just pass the message
> to another object, perhaps that is the problem?
>
> }
>
>
> - (void)deleteBackward:(id)sender {
>
> [_corkBoardController deleteBackward:sender];
>
> }
>
>
>
>  Try adding a keyDown: method.  Doesn't need to do anything, but
> NSResponder beeps if it's not there.
> _______________________________________________
>
> 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
>
>
> This email sent to email@hidden
>
>
_______________________________________________

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

References: 
 >Beep when typing (From: "Bridger Maxwell" <email@hidden>)
 >Re: Beep when typing (From: "Jonathan del Strother" <email@hidden>)
 >Re: Beep when typing (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Xcode 3.0 Hangs on Build or Save
  • Next by Date: Updating model: NSPopupButtonCell, NSTableView, Bindings
  • Previous by thread: Re: Beep when typing
  • Next by thread: Low latency video mapping on 3D objects
  • Index(es):
    • Date
    • Thread