• 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
NSComboBox blocking string setting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: coco on windows
  • Next by Date: looking for decent source code editor
  • Previous by thread: Re: coco on windows
  • Next by thread: looking for decent source code editor
  • Index(es):
    • Date
    • Thread