• 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, observeValueForKeyPath:, and modal dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBox, observeValueForKeyPath:, and modal dialog


  • Subject: NSComboBox, observeValueForKeyPath:, and modal dialog
  • From: Larry Gerndt <email@hidden>
  • Date: Wed, 10 May 2006 20:17:12 -0700

I have a bug which involves NSComboBox, observeValueForKeyPath:, and a modal dialog. The NSComboBox's "value" binding is bound to an attribute in my model. My model registers as an observer of that attribute. When the user clicks the popup button and chooses an item, the model gets notified via observeValueForKeyPath:, and under certain conditions it will then display a modal NSAlert by calling [alert runModal]. The problem is, when the user dismisses the alert, the window which contains the combo box will not respond to the first click, despite appearing to have become the active window. Second and subsequent clicks work fine. Anyone have any clue what's going on and how to fix this?
-
Larry Gerndt
Web sites: Emerging Truths CoreData
AIM: SonOfTheSonOfMan
"Let the truth be told though the heavens fall" -- James Garrison





_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: NSArrayController filterPredicate and dates
  • Next by Date: Re: Cocoa software design issue
  • Previous by thread: Re: Weird error with structs and @try/@catch
  • Next by thread: Problem creating binding for deployment
  • Index(es):
    • Date
    • Thread