• 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
Determining if a NSTextField is selected....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining if a NSTextField is selected....


  • Subject: Determining if a NSTextField is selected....
  • From: Kevin Elliott <email@hidden>
  • Date: Thu, 30 Jan 2003 16:15:17 -0800

Greetings all, I've got what sounds like a simple problem that I haven't been able to figure out. I've got a window with number of NSTextFields and an NSStepper in it. I'm trying to figure out is how to determine which of those NSTextFields is currently "selected" (the text is highlighted and/or it has the current cursor) inside the NSSteppers action message. Nothing I've tried seems to work.

Neither NSTextField, nor it's super classes have an "isActiveSelection" method. I've tried using NSTextField's "- (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor"
and "- (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor
" to track which contol is active, but they don't seem to be called for selection changes, only when actual input happens.

What am I missing?
--
__________________________________________
Kevin Elliott <mailto:email@hidden>
ICQ#23758827 AIM ID: teargo
__________________________________________
_______________________________________________
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.

  • Follow-Ups:
    • Re: Determining if a NSTextField is selected....
      • From: Alan Nilsson <email@hidden>
References: 
 >Hand cursor (From: Matthew Lehrian <email@hidden>)

  • Prev by Date: NSWindow initialFirstResponder
  • Next by Date: Re: NSUserDefaults writing to machine wide preferences?
  • Previous by thread: Re: Hand cursor
  • Next by thread: Re: Determining if a NSTextField is selected....
  • Index(es):
    • Date
    • Thread