CPObject -version should be static and zero by default.

This commit is contained in:
Randall Luecke committed 2010-12-10 10:01:33 -05:00
1 parent d69f46f7ee
commit 3a716c08f8
1 file changed
+6 -2
+6 -2
View File
@@ -61,6 +61,10 @@ CPLog(@"Got some class: %@", inst);
@todo document KVC usage.
*/
var _classVersion = 0;
@implementation CPObject
{
Class isa;
@@ -452,7 +456,7 @@ CPLog(@"Got some class: %@", inst);
*/
+ (id)setVersion:(int)aVersion
{
version = aVersion;
_classVersion = aVersion;
return self;
}
@@ -462,7 +466,7 @@ CPLog(@"Got some class: %@", inst);
*/
+ (int)version
{
return version;
return _classVersion;
}
// Scripting (?)