NSTextField responder chain question...
NSTextField responder chain question...
- Subject: NSTextField responder chain question...
- From: Alex Lock <email@hidden>
- Date: Tue, 7 Oct 2003 17:19:20 -0400
Hey all,
I've racked my brain with this one... read the docs on NSTextField over
and over, and I can't figure out how to perform this (seemingly simple)
function.
I want the text field to become active (blinking cursor, able to enter
text w/ no mouse click) on a keypress (which is interpreted by my
custom view class).
I've verified that the correct keyDown method is called, I'm
interpreting the key correctly and getting to the point of making my
text field "ready to type" and I'm stuck. How do you (programatically)
tell an NSTextField to become active?
I've tried:
[[gmsgTextField window] makeKeyAndOrderFront:nil];
[[gmsgTextField window] makeFirstResponder:gmsgTextField];
With no success so far.
I've also tried other things like ([gmsgTextField selectText:self];)
and variants.
How do I accomplish this simple goal?
Thanks!
Alex <email@hidden>
_______________________________________________
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.