typo... woops... can this thread be deleted?
what's the difference between these two lines?
The difference is is that the first line (written by me) causes an uncatchable error (i put it in a try catch and it still crashed)
and the second line is from the documentation about NSDictionary
I see two completely identical lines (apart from the variable name)
I took out the first line and it worked fine, but as soon as it was put back in it crashed.
what could cause this?
Code:
NSDictionary *testDic = [NSDictionary dictionaryWithObjectsAndKeys:
@"value1", @"key1", "@value2", @"key2", nil];
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
@"value1", @"key1", @"value2", @"key2", nil];
what's the difference between these two lines?
The difference is is that the first line (written by me) causes an uncatchable error (i put it in a try catch and it still crashed)
and the second line is from the documentation about NSDictionary
I see two completely identical lines (apart from the variable name)
I took out the first line and it worked fine, but as soon as it was put back in it crashed.
what could cause this?