I want to know the difference between nil, NIL and null. I\'ve googled around and found this: nil -> null pointer to Objective-C object
I have a piece of code that detects if a NSString is NULL, nil, etc. However, it crashes. Here is my code:
Actually my question here is: are null and nil equivalent or not? I have an example but I am confused when they are equal when they are not.
This is sample code: NSDictionary *myDictionary = [NSDictionary dictionary]; NSNumber *myNumber = [myDictionary valueForKey: @\"MyNumber\"];