Many thanks to Max_Power89. His answer is correct. Finished code now looks like :
.h File
//
// tttMove.h
// TicTocToe
//
// Created by Matthew Baker on 12/09/2013.
// Copyright (c) 2013 Matthew Baker. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface tttMove : NSObject
@property (nonatomic) int across;
@property (nonatomic) int down;
-(id)init;
-(id)initWithPos :(int)newAcross :(int)newDown ;
-(void)set:(int)newAcross :(int)newDown;
-(void)showResults;
@end
.m File
//
// tttMove.m
// TicTocToe
//
// Created by Matthew Baker on 12/09/2013.
// Copyright (c) 2013 Matthew Baker. All rights reserved.
//
#import "tttMove.h"
@implementation tttMove
@synthesize across;
@synthesize down;
-(id) init {
if( (self=[super init] )) {
[self setAcross:0];
[self setDown:0];
}
return self;
}
-(id)initWithPos :(int)newAcross :(int)newDown {
if( (self=[super init] )) {
[self setAcross:newAcross];
[self setDown:newDown];
}
return self;
}
-(void)showResults {
NSLog(@"move position %i,%i",[self across],[self down]);
}
-(void)set:(int)newAcross :(int)newDown {
[self setAcross:newAcross];
[self setDown:newDown];
}
@end
Thanks again for your help.