• 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: keyDown: in NSTextField subclass not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: keyDown: in NSTextField subclass not getting called


  • Subject: RE: keyDown: in NSTextField subclass not getting called
  • From: Vinay Prabhu <email@hidden>
  • Date: Mon, 10 Jul 2006 16:39:32 +0530
  • Importance: Normal

This could be because NSTextField is not first responder for that event.

NSTextField makes use of the NSTextView object for displaying the text.
the keydown event might be getting passed to NSTextView object...

If you're interested in normal text keys, then the best option would be to
use an NSFormatter.
That allows you to validate partial and/or complete strings.
If you want to do something other than what NSFormatter does, you can use
text-did-change notifications and the like.

-----Original Message-----
From: cocoa-dev-bounces+vinayprabhu=email@hidden
[mailto:cocoa-dev-bounces+vinayprabhu=email@hidden]On
Behalf Of RameshPVK
Sent: Monday, July 10, 2006 4:22 PM
To: email@hidden
Subject: keyDown: in NSTextField subclass not getting called


Hi All,

	I have sub classed NSTextField and over-ridden the keyDown: method.
But this is not getting called. Directly the keyUp: event is getting
called.
	But it is getting called for NSButton subclass.
	Can anyone please throw some light on this.

Thanks,
RameshPVK
effigent India Pvt Ltd.
Mobile : (91) 9885556420
Res     :  040-27222293

Imagination is more important than knowledge. Knowledge is limited.
Imagination encircles the world.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
in

This email sent to email@hidden

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >keyDown: in NSTextField subclass not getting called (From: RameshPVK <email@hidden>)

  • Prev by Date: keyDown: in NSTextField subclass not getting called
  • Next by Date: convert Java or C Source code into Objective-c
  • Previous by thread: keyDown: in NSTextField subclass not getting called
  • Next by thread: convert Java or C Source code into Objective-c
  • Index(es):
    • Date
    • Thread