• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: subclass overwriting superclass ivar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSTextFieldCell + Transparent NSTableView = Black Field editor
  • Next by Date: Cannot change IKImageBrowserView group title text color?
  • Previous by thread: Re: subclass overwriting superclass ivar
  • Next by thread: OutlineView Wierdness - 'item' not being stored.
  • Index(es):
    • Date
    • Thread