Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Intercepting KeyDown-Event from NSTextField?

Intercepting KeyDown-Event from NSTextField?
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2000
Location: Austria
Status: Offline
Reply With Quote
Mar 15, 2002, 02:10 PM
Can anybody tell me how I can detect or even intercept a keydown-event from an NSTextField. I tried to make my controller a delegate for the NSTextField but nothing happens.

Any suggestions are welcome - thanks in advance!

Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Mar 15, 2002, 03:45 PM
You'll need to subclass NSTextField and override the keyDown: method.
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 11:25 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,