NSComboBox and lack of notification...
NSComboBox and lack of notification...
- Subject: NSComboBox and lack of notification...
- From: Lloyd Sargent <email@hidden>
- Date: Mon, 28 Mar 2005 21:06:57 -0600
Assume there is a combo box and a button. Before you can proceed you must either
1) Press the button
2) Type something in the combo box
Either way, the combo box must contain a SOMETHING.
When the button is pushed, my code does this:
[comboBox addItemWithObjectValue:value];
[comboBox selectItemWithObjectValue: value];
[[NSNotificationCenter defaultCenter] postNotificationName:@"NSControlTextDidChangeNotification" object: comboBox];
The idea was to simplify my testing of whether someone entered something or whether they pressed the button (it reduced my code a bit).
Now I run into a problem. Here are the steps:
1. Someone pushes the button
2. Value gets stuffed into the combo box (I get a change notification)
3. User deletes what is in the combo box
4. User then selects the just deleted item FROM the combo box (because it is in the list)
5. I get nothing. No notifications, nothing.
Shouldn't I get SOME kind of notification when a user select an item -- even if it is the item that USED to be there?!?
Cheers,
Lloyd _______________________________________________
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