• 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
RE>NSComboBox Delegate problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: RE>NSComboBox Delegate problem
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: Representing UTC time in a readable format
  • Next by Date: Multiline using #define
  • Previous by thread: NSComboBox Delegate problem
  • Next by thread: Re: RE>NSComboBox Delegate problem
  • Index(es):
    • Date
    • Thread