• 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: mouseDown: vs. keyDown:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >mouseDown: vs. keyDown: (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: mouseDown: vs. keyDown:
  • Next by Date: Re: Getting notified of date change?
  • Previous by thread: mouseDown: vs. keyDown:
  • Next by thread: Cocoa Application Without GUI
  • Index(es):
    • Date
    • Thread