• 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
[aPopUpButton indexOfSelectedItem]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[aPopUpButton indexOfSelectedItem]


  • Subject: [aPopUpButton indexOfSelectedItem]
  • From: Cyprien <email@hidden>
  • Date: Tue, 8 Jul 2003 16:45:44 +0200

Thanx everyone. I was trying to get the title of the selected Item of an NSPopUpButton as an int.
And this work :

[[[aNSPopUpButton selectedItem] title] intValue];

but why in the world this following code line doesn't work ?

[[aPopUpButton titleOfSelectedItem] intValue];
I get a warning telling me that "NSPopUpButton doesn't respond to titleOfSelectedItem" and a selector not recognized when I try to run the app.

And there is some other problem very likely :
For example,

[aPopUpButton indexOfSelectedItem];

leads to the same error message.
_______________________________________________
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.

  • Prev by Date: Re: Sudden problems with linking my project
  • Next by Date: Re: Calling Java from obj-c app
  • Previous by thread: Re: Calling Java from obj-c app
  • Next by thread: [OT] Notification of all keyboard input
  • Index(es):
    • Date
    • Thread