Re: Little problem with NSPopUpButton
Re: Little problem with NSPopUpButton
- Subject: Re: Little problem with NSPopUpButton
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 23 Dec 2002 13:52:32 -0800
On Saturday, December 21, 2002, at 09:16 PM, Aidas Dailide wrote:
Howdie there,
I would like to return int value of currently selected item of
NSPopUpButton. I've tried to use many commands like [[popup
titleOfSelecteditem] intValue],[popup intValue] and some others, but
all the time it returns 0. I'm sure that my NSPopUpButton values are
correct (all numbers only).
You might want to use the tag value instead. You can set the tags in
IB, and get them in your code with [sender tag].
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.