Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Why do some classes use "@class" but others don't?

Here is an example of one that does:

@class AddRoleTVC;
@protocol AddRoleTVCDelegate <NSObject>
- (void)theSaveButtonOnTheAddRoleTVCWasTapped:(AddRoleTVC *)controller;
@end

@interface AddRoleTVC : UITableViewController

====

but other objects DO NOT include @class

Please explain the difference.

Thanks.
Avatar of ramrom
ramrom
Flag of United States of America image

What language?
Avatar of curiouswebster

ASKER

Sorry.  Objective-C.
Please add that to your topic list. Probably get more responses. I personally don't know Objective-C.
I don't think I ever used a topic list. I added it to the Topic Areas I find closest to this environment, Mac OS, iOS, Apple Programming. But if I can learn to make my posts more searchable, then great.

Where would I add Objective-C?

There is no Objective-C TA.
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.