I have a .m file, containing a @implementation ,
but it has gotten too big and I’m trying to move some of the method functions to a 2nd file.
Both .m files begin with
@implementation GesticulatorViewController
@synthesize score_display;
@synthesize game_status;
@synthesize player_options;
@synthesize total_players_field;
@synthesize gesticulation_sentence;
@synthesize gesticulation_input;
@synthesize main_view_manager;
@synthesize game_state;
But I’m getting linker warning:
“ld: duplicate symbol _OBJC_IVAR_$_GesticulatorViewController.gesticulation_input “
You cannot have the same class implementation in two different files.
In your case, you cannot split the implementation of GesticulatorViewController into two .m files.
EDIT:
I would use Objective-C categories to disperse the implementation.
With categories, you have the opportunity to group together methods that perform similar tasks.
Here’s an explanation of “Categories and Extensions” from Apple’s documentation:
https://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/ObjectiveC/Chapters/ocCategories.html#//apple_ref/doc/uid/TP30001163-CH20-SW1