Top "Nsnumber" questions

on Mac OS X, NSNumber is a subclass of NSValue that offers a value as any C scalar (numeric) type

How to convert an NSString into an NSNumber

How can I convert a NSString containing a number of any primitive data type (e.g. int, float, char, unsigned …

objective-c nsstring nsnumber primitive-types
How to convert NSNumber to NSString

So I have an NSArray "myArray" with NSNumbers and NSStrings. I need them in another UIView so i go like …

objective-c nsstring nsarray nsnumber
Convert NSNumber to int in Objective-C

I use [NSNumber numberWithInt:42] or @(42) to convert an int to NSNumber before adding it to an NSDictionary: int intValue = 42; NSNumber *…

objective-c nsnumber
How to add two NSNumber objects?

Now this must be easy, but how can sum two NSNumber? Is like: [one floatValue] + [two floatValue] or exist a …

objective-c math nsnumber
String to NSNumber in swift

I found a method to convert string to NSNumber, but the code is in objective-C. I have tried converting it …

ios swift ios8 nsnumber
What's the difference between NSNumber and NSInteger?

What's the difference between NSNumber and NSInteger? Are there more primitives like these that I should know about? Is there …

iphone objective-c nsnumber primitive-types nsinteger
Working with NSNumber & Integer values in Swift 3

I am trying to convert my project to Swift 3.0 however I am having two error messages when working with NSNumber …

ios swift int swift3 nsnumber
Comparing NSNumbers in Objective C

I am a beginner at Objective-C and I am a bit confused at this scenario. I have the following code: …

objective-c nsnumber
NSString To NSNumber

So this problem has been perplexing me for way too long. I have a UIAlertView with a textField in it, …

iphone objective-c nsstring int nsnumber
Is it possible to cast an NSInteger to NSNumber?

Is it possible to cast a NSInteger to a NSNumber object? I need to convert the tag of a UIImageView …

objective-c casting nsnumber nsinteger