• 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
NSTextField responder chain question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: stepper problem
  • Next by Date: Re: CFRunLoop usage
  • Previous by thread: stepper problem
  • Next by thread: Re: NSTextField responder chain question...
  • Index(es):
    • Date
    • Thread