Re: mouseDown: vs. keyDown:
Re: mouseDown: vs. keyDown:
- Subject: Re: mouseDown: vs. keyDown:
- From: j o a r <email@hidden>
- Date: Wed, 7 Jan 2004 13:55:02 +0100
Read about the "Field Editor" in the documentation, and possibly the
list archives.
You can start here:
<file:///Developer/Documentation/Cocoa/Conceptual/TextArchitecture/
Concepts/TextFieldsAndViews.html>
Basically all text editing in a window is done by a shared text view,
the field editor, that is re-used and passed around between all
controls.
j o a r
On 2004-01-07, at 13.46, Daniel Todd Currie wrote:
>
In a custom subclass of NSTextField, I have the following code:
>
>
> - (void)keyDown:(NSEvent *)theEvent
>
> {
>
> NSLog(@"keyDown");
>
> }
>
>
>
> - (void)mouseDown:(NSEvent *)theEvent
>
> {
>
> NSLog(@"mouseDown");
>
> }
>
>
When I click in the text field, the Run Log prints "mouseDown", but
>
when I press a key while the text field is first responder, nothing
>
happens. What gives?
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.