numberWithInt42
NumberWithInt42 is not a standard API but a phrase that may appear in documentation or examples to indicate a value of 42 wrapped as an NSNumber object. In Objective-C, the common pattern to create an NSNumber containing an int value is to use the class method numberWithInt:. The resulting object can be used wherever an Objective-C object is required by Cocoa and Cocoa Touch APIs.
In older code, the typical invocation is [NSNumber numberWithInt:42], which returns an autoreleased NSNumber containing the
numberWithInt: accepts an int argument and returns an NSNumber representing that int value. There are related
If you encounter a symbol named numberWithInt42, it is more likely a generated identifier, a variable name,