Welcome to the Treehouse Community
Looking to learn something new?
Why is NSLog called like a C method rather than an Obj-C method?
So NSLog is a method that writes to the console. But when we call it, we say
NSLog(@"Blah Blah Blah");
[NSLog @"Blah Blah Blah"];
Any reason behind this? Or is the second way possible to do? The question is kinda stupid, but it's really bugging me as to why we do it this way...
Michael Hulet47,842 Points
We call it like a C function because it is a C function, not a method. A method is tied to a specific class, where
NSLog is not