RE>NSComboBox Delegate problem
RE>NSComboBox Delegate problem
- Subject: RE>NSComboBox Delegate problem
- From: dan donaldson <email@hidden>
- Date: Sat, 5 Jun 2004 15:14:52 -0400
Well, five hours of trying, and found the answer five minutes after
writing to the list.
I'm obtaining the value of the NSComboBox after it changes when using
the delegate method
- (void) comboBoxSelectionDidChange:(NSNotification *)aComboBox
by this means:
id tempKey = [self comboBox:[aComboBox object]
objectValueForItemAtIndex:[[aComboBox object]indexOfSelectedItem]];
Which works fine. My question now is - why does a method that indicates
that it reflects the state of things after a change to the NSComboBox
in fact reflect its state prior to changing? I can see this is useful,
but I would expect that comboBoxSelectionIsChanging: would do this. Can
anyone tell me why this is? And if the box has changed but the
notification's - object shows the state prior, what does the -object
refer to?It seems to a newbie like a quantum problem of the same object
being in two places - or at least states - at once.
dan
_______________________________________________
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.