• 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: Janek Priimann <email@hidden>
  • Date: Sun, 22 Dec 2002 14:51:19 +0200

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

If I did understand you correctly, then maybe you should try to use tags?

a) [<cell> setTag:<integer value here>]; to set a integer value to a cell
b) in Interface Builder set a tag for each cell.

and to get the int value just do the following:
[<cell> tag];

-----------------------------------------
Hot Mobiil - helinad, logod ja piltsunumid!
http://portal.hot.ee
_______________________________________________
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: How to get the darker variant of selectedControlColor?
  • Next by Date: NSTextView Text Alignment
  • Previous by thread: Re: Little problem with NSPopUpButton
  • Next by thread: Little problem with NSPopUpButton
  • Index(es):
    • Date
    • Thread