views:

25

answers:

1

I have built an data model in Xcode and I have generated a custom managed object class from one of the entities in the model. I am not sure why but I don't think the custom class is building properly.

For example if I just type some random stuff in the middle of a class declaration like:

@class MyOtherClass;

@interface MyClass :  NSManagedObject  
{    !!!!!!!THIS SHOULD CAUSE A SYNTAX ERROR!!!!!!!!!!!!
}

@property (nonatomic, retain) NSDate * myDate;
@property (nonatomic, retain) NSNumber * myNumber;
@property (nonatomic, retain) NSSet* otherEntities;

@end

it builds successfully. I have no idea why.

Any thoughts?

+2  A: 

Are you sure you're including the .m and .h files in your project?

Ben Gottlieb
And the .m in your target. (The .h does not need to be in a target.)
Peter Hosey