NSComboBox blocking string setting
NSComboBox blocking string setting
- Subject: NSComboBox blocking string setting
- From: Matt Massicotte <email@hidden>
- Date: Thu, 28 Mar 2002 18:42:56 -0500
Hi,
I ran into this little problem, which I have worked around, but I'm just
curious as to why it's happening. I have a method which populates a
bunch of textfields with strings. Some of those are NSComboBoxes.
The weirdness is that when my window opens, an NSComboBox is the
firstResponder, and it's got the blue border and a cursor inside.
However, when it's in this state, I can't make *any* changes to
NSTextFields. The setStringValue:'s don't give me an error, they just
doesn't do anything.
If I stick in the line
[[self window] makeFirstResponder:nil];
before I call all the setStringValue:'s for the NSTextFields, everything
works. What's the deal?
Matt Massicotte
_______________________________________________
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.