mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 01:12:03 +00:00
CPObject -version should be static and zero by default.
This commit is contained in:
1 parent
d69f46f7ee
commit
3a716c08f8
1 file changed
+6
-2
@@ -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 (?)
|
||||
|
||||
Reference in new issue
Block a user