• 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: comboBoxSelectionDidChange problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comboBoxSelectionDidChange problem?


  • Subject: Re: comboBoxSelectionDidChange problem?
  • From: j o a r <email@hidden>
  • Date: Fri, 12 Dec 2003 14:49:37 +0100

The combo box is not as automatic as one might think at first glance. I
suggest that you look in the documentation for the
"indexOfSelectedItem" method, and see if you can grab out the object
value for the selected item that way. Note that it probably depends on
that you set the selected item in the list when a new string value is
set, either programmatically or by the user. You do that with the
"selectItemAtIndex:" method.

j o a r

On 2003-12-12, at 14.31, Theodore Petrosky wrote:

> I have the delegate set up and this is getting called
> when the combo box changes however it is showing me
> the result before the change.
>
> I assumed that the log would show me the 'new' string
> but on the first pass the string is null.
>
> What am I not understanding?
>
> - (IBAction)comboBoxSelectionDidChange:(NSNotification
> *)nofif {
>
> NSLog(@"changed = %@", [clientNamesComboBox
> stringValue]);
>
> }

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

References: 
 >comboBoxSelectionDidChange problem? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: comboBoxSelectionDidChange problem?
  • Next by Date: Re: Drawing application dock icon from Cocoa?
  • Previous by thread: Re: comboBoxSelectionDidChange problem?
  • Next by thread: Drawing application dock icon from Cocoa?
  • Index(es):
    • Date
    • Thread