Robert
Robert

Reputation: 533

What is the plus (+) symbol in Objective-c #import instructions?

For example:

#import "NSArray+BBNSArrayAdditions.h"

I've tried googling it and looking on the apple developer documentation but I can't find an explanation.

A link or explanation of any other import tokens would also be useful.

Thanks.

Upvotes: 3

Views: 508

Answers (1)

Greg
Greg

Reputation: 25459

It is just file name : NSArray+BBNSArrayAdditions.h but in Objective C there is a 'standard' to name categories as: class name (class you want to write category for) plus sign and your custom category name, for example;

NSString+MyCategoryName.h

Upvotes: 6

Related Questions