i'm declaring two property inside my interface both of them should be pointers, but xcode gives me two different errors..
// myClass.h
#import <Foundation/Foundation.h>
@class CCNode;
@interface myClass : NSObject
{
NSMutableArray myArray;
CCNode myNode;
}
for the NSMutableArray:
Interface type cannot be statically allocated
for the CCNode:
Field has incomplete type 'CCNode'
in both cases, using pointers will solve the issue, but what's the difference between them?
with try-and-error approach, i found out that if i change @class CCNode
to #import "CCNode.h"
then it gives me the same error as the first line, but i'm definetly missing something for the correct understanding....