Skip to content

Instantly share code, notes, and snippets.

@tonyarnold
Created December 3, 2009 00:44
Show Gist options
  • Select an option

  • Save tonyarnold/247782 to your computer and use it in GitHub Desktop.

Select an option

Save tonyarnold/247782 to your computer and use it in GitHub Desktop.
@property CGImageRef backgroundCGImage;
@dynamic backgroundCGImage;
- (CGImageRef)backgroundCGImage {
return backgroundCGImage;
}
- (void)setBackgroundCGImage:(CGImageRef)anImageRef {
if (backgroundCGImage == anImageRef) return;
CGImageRelease(backgroundCGImage), backgroundCGImage = NULL;
if (anImageRef != NULL) {
backgroundCGImage = CGImageRetain(anImageRef);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment