I'm having a hell of a time understanding pointers in Objective C. They don't behave like I would assume based on various C tutorials.
Example:
// Define Name and ID
NSString *processName = [[NSProcessInfo processInfo] processName];
NSNumber *processID = [NSNumber numberWithInt:[[NSProcessInfo processInfo] processIdentifier]];
// Print Name and ID
NSLog(@"Process Name: %@ Process Identifier: %@", processName, processID);
As I understand it, processName is a pointer to an object of type NSString. processID is a pointer to an object of type NSNumber. When both are called in NSLog(), they do not have an asterisk preceding their name and therefore should be returning pointer values. Why is there no 'address of' character in Obj C? Why does this code work?
Thank you for your time.