Created
September 18, 2009 15:17
-
-
Save danielpunkass/189105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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