[aPopUpButton indexOfSelectedItem]
[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.