Beep when typing
Beep when typing
- Subject: Beep when typing
- From: "Bridger Maxwell" <email@hidden>
- Date: Tue, 19 Feb 2008 05:13:30 -0700
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];
}
Thank You,
Bridger Maxwell
_______________________________________________
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