nsnumber Questions
3
Solved
I'm attempting to get around a date validation that refuses to take anything earlier than tomorrow.
So far I have this:
NSDate *dateY = [NSDate dateWithTimeIntervalSinceNow:-86400];
// Negative o...
Ashly asked 14/4, 2011 at 13:50
3
Solved
I've got a dictionary initialized like so...
keyDictionary = [[NSDictionary dictionaryWithObjects:values forKeys:keys]retain];
where keys is an NSArray of the alphabet and other characters and v...
Logician asked 29/3, 2011 at 14:10
2
Solved
I have a few floats which I convert to NSNumbers and add to an array, then sort in numerical order.
I then take the original floats and convert those to NSNumbers, but if I try to compare them if(...
Northwest asked 14/3, 2011 at 12:33
3
Solved
I have a parser returning some string value I'd like to use as parameter for my class instance initialisation.
I have a method asking two NSString and a float value, but I can't convert the string...
Baffle asked 28/1, 2011 at 17:26
1
Solved
I got an crash logs from a customer to figure why my app crash on her iPhone.
Here some info from crash log:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed T...
3
Solved
Given the following code:
int firstInt, secondInt;
firstInt = 5;
secondInt = 5;
NSNumber *firstNumber = [NSNumber numberWithInt:firstInt];
NSNumber *secondNumber = [NSNumber numberWithInt:second...
Swordsman asked 24/11, 2010 at 18:12
1
Solved
there is a coordinate object with three variables latitude(NSNumber) ,longitude(NSNumber) and time(NSDate),for checking the program on my simulator,i gave the folowing code
[coordinate setLatitude...
1
Solved
So essentially my question is this, I am creating an NSMutableDictionary using uint64_t objects as the key.
Is there any better way to create them than doing this?
uint64_t bob=7;
NSNumber *bobs...
2
Solved
I'm trying to convert an NSString object to an NSNumber with the same numerical value. When I create the NSString object using this statement...
NSString *songID = [localNotif.userInfo objectForKe...
5
Solved
I'm new to Objective-C and Cocoa. I've read that NSInteger and NSNumber are preferred when working with simple integers because they're the "platform-safe" versions of the primitive numeric types (...
Gelasius asked 27/5, 2009 at 12:6
2
Solved
I want to convert NSString to NSNumber without using numbreFromString: method? The numbreFromString: metgod is acting weirdly in 4.0. So i want to use an alternative to convert NSString to NSNumber...
1
Solved
I'm working on a console app that is tracks different songs. I'm working on getting the song class up off the ground first and have run into a snag trying to log an nsnumber which has been allocate...
Discourage asked 11/1, 2010 at 23:24
1
Solved
I an developing some code in which I use a scanner to get to NSNumbers from a string, say x and y.
Now I want to compute something simple from x and y, say, z = 10.0/(x + y/60.0)/60.0). I can't do...
Carrissa asked 26/11, 2009 at 2:11
3
Solved
As I understand, in Objective-C you can only put Objects into dictionaries. So if I was to create a dictionary, it would have to have all objects. This means I need to put my ints in as NSNumber, r...
Limber asked 10/11, 2009 at 1:12
3
In my core data model, I have an entity with an optional NSNumber attribute.
How do I test to see if the value in that attribute is valid or not?
When I test for nil... doesn't work.
[self numb...
Sorority asked 27/7, 2009 at 14:18
1
Solved
I have an unsigned long long value which I want to store into an NSString and retrieve from the string.
Initially I have the value in an NSNumber and I am using this to get the string
NSString *n...
Crossland asked 25/7, 2009 at 8:55
© 2022 - 2024 — McMap. All rights reserved.