• 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: Little problem with NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little problem with NSPopUpButton


  • Subject: Re: Little problem with NSPopUpButton
  • From: Mike Ferris <email@hidden>
  • Date: Sat, 21 Dec 2002 12:20:44 -0800

Submit a bug that -intValue does not work. Since -objectValue returns an NSNumber with the selected item, one would expect -intValue to return the same number (as a scalar).

However, as Rakesh said, the more normal way to do what you want is with -indexOfSelectedItem.

Mike


Begin forwarded message:

From: Aidas Dailide <email@hidden>
Date: Sat Dec 21, 2002 9:16:44 PM US/Pacific
To: email@hidden
Subject: Little problem with NSPopUpButton

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).

Thanks,

Aidas
_______________________________________________
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.
_______________________________________________
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: 
 >Little problem with NSPopUpButton (From: Aidas Dailide <email@hidden>)

  • Prev by Date: Re: SOAP Server
  • Next by Date: Re: SOAP Server
  • Previous by thread: Re: Little problem with NSPopUpButton
  • Next by thread: Re: Little problem with NSPopUpButton
  • Index(es):
    • Date
    • Thread