NSComboBox, observeValueForKeyPath:, and modal dialog
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