Revision: 5842
http://skim-app.svn.sourceforge.net/skim-app/?rev=5842&view=rev
Author: hofman
Date: 2009-10-05 10:17:27 +0000 (Mon, 05 Oct 2009)
Log Message:
-----------
use NSShouldRetainWithZone
Modified Paths:
--------------
trunk/SKVersionNumber.m
Modified: trunk/SKVersionNumber.m
===================================================================
--- trunk/SKVersionNumber.m 2009-10-03 17:10:30 UTC (rev 5841)
+++ trunk/SKVersionNumber.m 2009-10-05 10:17:27 UTC (rev 5842)
@@ -184,7 +184,10 @@
- (id)copyWithZone:(NSZone *)zone;
{
- return [self retain];
+ if (NSShouldRetainWithZone(self, zone))
+ return [self retain];
+ else
+ return [[[self class] allocWithZone:zone]
initWithVersionString:originalVersionString];
}
#pragma mark Comparison
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit