Xcode 4.6.2 Lion 10.7.5 Programming with Objective-C seems to indicate I can do this: #import <Cocoa/Cocoa.h> #import "Cell.h" //My sub-class
@interface Document : NSDocument @property Cell *protoCell; @end and this (i.e. no need to @synthesize): @implementation Document - (id)init { self = [super init]; if (self) { protoCell = [[Cell alloc]init]; // Add your subclass-specific initialization here. } return self; } …… @end but the compiler tells me Use of undeclared identifier 'protoCell'; did you mean '_protoCell'? If I do refer to the ivar using the internal reserved form _protoCell the compiler is happy. What is my lack of understanding? Why am I not allowed to use the getter protoCell as indicated in the documentation? TIA Peter _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com