Re: subclass overwriting superclass ivar
Re: subclass overwriting superclass ivar
- Subject: Re: subclass overwriting superclass ivar
- From: Greg Guerin <email@hidden>
- Date: Wed, 26 May 2010 09:50:24 -0700
Jonathan Mitchell wrote:
MGSScriptExecutorManager *scriptExecutorManager;
NSString *tempFilePath;
}
@interface MGS_B : MGS_A {
@private
NSData *stderrData;
}
Change the ivars to something like this:
MGSScriptExecutorManager *scriptExecutorManager;
NSString *tempFilePath;
NSString *watchMe; // should be nil at all times
}
@interface MGS_B : MGS_A {
@private
NSData *stderrData;
}
Then set a watchpoint on watchMe.
You can also sprinkle in assertions that watchMe is always nil.
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden