• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Nicholas Riley <email@hidden>
  • Date: Fri, 12 Apr 2002 06:42:42 -0500
  • Mail-followup-to: praveena tandon <email@hidden>, email@hidden

On Fri, Apr 12, 2002 at 04:26:37AM -0700, praveena tandon wrote:
> hai all,
> i am developing a application in cocoajava , i got
> the caption of the button( wihch is number )in a
> textefield.i want to convert the string to an int .
> which method i can use ??

Just send the NSTextField intValue. See the definition of NSControl -
you can send any control doubleValue, floatValue, intValue, or
stringValue and it'll convert the control contents to that type if it
can.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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: 
 >(no subject) (From: praveena tandon <email@hidden>)

  • Prev by Date: Re: Java Cocoa - App doesnt work outside of PB
  • Next by Date: Re: (no subject)
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread