]> err.no Git - sope/blobdiff - sope-ical/NGiCal/NGVCardPhone.m
added class version checks
[sope] / sope-ical / NGiCal / NGVCardPhone.m
index 1707609ac07d37c9bd09429fbc215037f826ca7e..1cc4c7d8a5d9a1a268dff6d948ec6db74f31c492 100644 (file)
 
 @implementation NGVCardPhone
 
++ (int)version {
+  return [super version] + 0 /* v0 */;
+}
++ (void)initialize {
+  NSAssert2([super version] == 0,
+            @"invalid superclass (%@) version %i !",
+            NSStringFromClass([self superclass]), [super version]);
+}
+
 @end /* NGVCardPhone */