NULL vs nil


#1

In the UITableView’s Data Source section:

defaultStore = [[super allocWithZone:NULL] init];
but the text afterwards says

Is there a difference between NULL and nil?


#2

There is no difference, they both mean 0.

It is typically stylish to use nil for Objective-C pointers and NULL for C pointers.

Therefore, this should be nil - our bad.