I wonder if I may ask about something which I thought I understood. (Please disregard the title of the question...I had originally asked this, but figured it out)
The retainCount of "Replacement_Number" is 2 when the following code is implemented. I would have expected 1 for each, not 1 for "first_Number" and 2 for "replacement_number".
Or is this something else completely.
Thank you in advance.
The retainCount of "Replacement_Number" is 2 when the following code is implemented. I would have expected 1 for each, not 1 for "first_Number" and 2 for "replacement_number".
Code:
first_number = [NSNumber numberWithInt: 42];
replacement_number = [NSNumber numberWithInt: 7];
NSLog(@"Retain Count: \"First Number:\" = %0X", [first_number retainCount]);
NSLog(@"Retain Count: \"Replacement Number:\" = %0X", [replacement_number retainCount]);
Or is this something else completely.
Thank you in advance.