carlos226
carlos226

Reputation: 31

Asterisk in parenthesis in Objective-C... What does it mean?

Just a quick question from an Objective-C beginner: what does the asterisk in the parenthesis mean in the following sample code? Is it a pointer? Thanks in advance.

#import <Foundation/Foundation.h>

@interface Tire : NSObject
@end
@implementation Tire

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

@end

Upvotes: 3

Views: 1653

Answers (1)

Lee
Lee

Reputation: 456

You are correct. The * means that description returns a pointer to an NSString object.

Upvotes: 8

Related Questions