A seemingly simple question: Can I have some sort of Number object, which can be nil but which I can assign like a primitive int:
like this:
NSNumber *n = nil;
n = 3;
if(n == nil){
// some actions...
} else if (n == 1){
// some actions...
} else {
// some actions...
}
Thanks for your input
The answer is NO. If the variable is an object you can either assign another object,
or, set the value by using properties or by methods,
and, compare the object with another object,
or compare its value by using properties/methods,