From ca4daa4d713ff8711ef0db39fa0ea414c52b527a Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 14 May 2007 14:30:53 +0000 Subject: [PATCH] changed KVC of vCard values to return nil on Cocoa git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1479 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-ical/NGiCal/ChangeLog | 4 ++++ sope-ical/NGiCal/NGVCardValue.m | 11 ++++++++++- sope-ical/NGiCal/Version | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/sope-ical/NGiCal/ChangeLog b/sope-ical/NGiCal/ChangeLog index cd8673c3..7fe5051e 100644 --- a/sope-ical/NGiCal/ChangeLog +++ b/sope-ical/NGiCal/ChangeLog @@ -1,3 +1,7 @@ +2007-05-14 Helge Hess + + * NGVCardValue.m: return nil for unknown KVC keys on Cocoa (v4.7.82) + 2007-03-04 Helge Hess * NGVCard.h: added missing declaration of NSData type (v4.7.81) diff --git a/sope-ical/NGiCal/NGVCardValue.m b/sope-ical/NGiCal/NGVCardValue.m index 5c63d213..d5f925ea 100644 --- a/sope-ical/NGiCal/NGVCardValue.m +++ b/sope-ical/NGiCal/NGVCardValue.m @@ -1,5 +1,5 @@ /* - Copyright (C) 2005 Helge Hess + Copyright (C) 2005-2007 Helge Hess This file is part of SOPE. @@ -112,6 +112,15 @@ return [self retain]; } +#if APPLE_FOUNDATION_LIBRARY || NeXT_Foundation_LIBRARY +- (id)valueForUndefinedKey:(NSString *)_key { + [self warnWithFormat:@"attempted to retrieve undefined key %@: %@", + _key, self]; + return nil; +} +#endif + + /* NSCoding */ - (void)encodeWithCoder:(NSCoder *)_coder { diff --git a/sope-ical/NGiCal/Version b/sope-ical/NGiCal/Version index 0c837170..f06132f6 100644 --- a/sope-ical/NGiCal/Version +++ b/sope-ical/NGiCal/Version @@ -2,7 +2,7 @@ MAJOR_VERSION=4 MINOR_VERSION=7 -SUBMINOR_VERSION:=81 +SUBMINOR_VERSION:=82 # v4.5.40 requires NGExtensions v4.5.145 # v4.5.37 requires NGExtensions v4.5.140 -- 2.39.5