What do you mean by "full use of the example"? Can you provide context for the example you are looking for?
What do you understand using something as a βnormalβ variable?
You can get NSNumber either using the numberWithXXX functions that return an object with auto-implementation, or by using the standard alloc / init :
NSNumber* myAllocedNumber = [[NSNumber alloc] initWithFloat:0.0f];
You can change what the pointer points to later, but you cannot change the value:
NSNumber* myAutoreleasedNumber = nil; myAutoreleasedNumber = [NSNumber numberWithFloat:0.0f];
source share