Skip to content

Instantly share code, notes, and snippets.

@danielpunkass
Created September 18, 2009 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpunkass/189105 to your computer and use it in GitHub Desktop.
Save danielpunkass/189105 to your computer and use it in GitHub Desktop.
- (id)copyWithZone:(NSZone *)zone
{
RSRadialProgressCell* newbie = [super copyWithZone:zone];
// When you use -[super copyWithZone], you have to assume that the superclass may have copied your instance variables over verbatim. So
// let's clear them out manually (using accessors would cause the stale pointer reference to be released).
newbie->mProgressView = nil;
newbie->mProgressView = [mProgressView retain];
newbie->mProgressCompletedOverlayImage = nil;
newbie->mProgressCompletedOverlayImage = [mProgressCompletedOverlayImage retain];
newbie->mVerticalPlacementNudgeFactor = mVerticalPlacementNudgeFactor;
newbie->mPieChartCircleSizePercentage = mPieChartCircleSizePercentage;
return newbie;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment