Two questions regarding formatting in Objective-C. From the book:
NSCalendar *cal = [NSCalendar currentCalendar]; NSUInteger day = [cal ordinalityOfUnit:NSDayCalendarUnit inUnit:NSMonthCalendarUnit forDate:now]; NSLog(@"This is day %lu of the month", day);
+ (NSHost *)currentHost - (NSString *)localizedName
In the first example, NSUInteger day is not a pointer, but NSCalendar cal is. Why is that? I have read the chapter on pointers and still do not understand this.
In the second example, what does this formatting indicate? It shows up in header files, Apple’s documentation, and throughout the book. What is the significance of the + and - symbols?