• 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
NSString intValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString intValue


  • Subject: NSString intValue
  • From: Andreas Næsby Rasmussen <email@hidden>
  • Date: Tue, 12 Aug 2003 16:44:28 +0200

Hi,

Something quite trivial which is starting to annoy me. I have a NSString containing for example "1234", which I want to turn into an int.

I fail to see why the following doesn't work but it always crashes with ... exited due to signal 10 (SIGBUS)


NSString *test = @"1234";

NSLog(@"test: %@", [test intValue]);

Thank you in advance

anr
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSString intValue
      • From: Christian Brunschen <email@hidden>
    • Re: NSString intValue
      • From: Andrew Pinski <email@hidden>
  • Prev by Date: Re: real-time text display in NSTextView object
  • Next by Date: Re: NSString intValue
  • Previous by thread: programmatically toggling "white on black" to "black on white"?
  • Next by thread: Re: NSString intValue
  • Index(es):
    • Date
    • Thread