Determining if a NSTextField is selected....
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.
References: | |
| >Hand cursor (From: Matthew Lehrian <email@hidden>) |