• 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: Problem with NSComboBox and Formatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSComboBox and Formatter


  • Subject: Re: Problem with NSComboBox and Formatter
  • From: Chuck Pisula <email@hidden>
  • Date: Thu, 28 Feb 2002 15:08:29 -0800

Make sure the values you are providing to the popup part are NSNumbers and not NSStrings. I guess the thing that's happening is that NSNumberFormatter only formats numbers, and not strings that are actually representations of numbers. Depending on your view, this seems reasonable... But you might file a bug if you don't think it is reasonable.

-chuck

On Wednesday, February 13, 2002, at 06:14 AM, Ronaldo Nascimento wrote:

I have a NSComboBox that is assigned a formatter for positive numbers
greater than 0.
The combo box does not show any of the numbers in the popup menu, if i add
them via code or the IB. But the TextView portion works fine.
In fact the combo box allows me to hilite/select portion of the popup menu,
but no value is stored there. Is there something I am missing?
Thanks

--
Ronaldo Nascimento
Senior VP of Technology, NetProof(r) Solutions
http://www.netproof.com/
_______________________________________________
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: 
 >Problem with NSComboBox and Formatter (From: Ronaldo Nascimento <email@hidden>)

  • Prev by Date: Re: Overiding keyDown in an NSComboBox
  • Next by Date: Re: determining binary files from text
  • Previous by thread: Problem with NSComboBox and Formatter
  • Next by thread: Re: C99 compliance
  • Index(es):
    • Date
    • Thread