An asterisk in parentheses in Objective-C ... What does this mean?

Just a quick novice question from Objective-C: what does the asterisk in parentheses mean in the following code example? Is this a pointer? Thanks in advance.

#import <Foundation/Foundation.h>

@interface Tire : NSObject
@end
@implementation Tire

- (NSString *) description
{
   return (@"I am a tire.");
}

@end
+3
source share
1 answer

You're right. * Means that the description returns a pointer to an NSString object.

+8
source

Source: https://habr.com/ru/post/1702729/


All Articles