From: helge Date: Tue, 23 Aug 2005 00:24:19 +0000 (+0000) Subject: added debug default X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1574e86ee41ea553a9a1ee2971f9c1de0fc5c73;p=sope added debug default added NSString cat git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1064 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-core/EOCoreData/ChangeLog b/sope-core/EOCoreData/ChangeLog index 2d5ff83d..6d9e8977 100644 --- a/sope-core/EOCoreData/ChangeLog +++ b/sope-core/EOCoreData/ChangeLog @@ -1,3 +1,12 @@ +2005-08-23 Helge Hess + + * v4.5.9 + + * added NSString+CoreData.m: for string related CD methods + + * EOCoreDataSource.m: added 'EOCoreDataSourceDebugEnabled' default to + enable debugging + 2005-08-06 Marcus Mueller * EOCoreData-Info.plist: new Xcode Info.plist file diff --git a/sope-core/EOCoreData/EOCoreDataSource.m b/sope-core/EOCoreData/EOCoreDataSource.m index 9a084617..d569d1bd 100644 --- a/sope-core/EOCoreData/EOCoreDataSource.m +++ b/sope-core/EOCoreData/EOCoreDataSource.m @@ -31,6 +31,13 @@ static NSString *EODataSourceDidChangeNotification = static BOOL debugOn = NO; ++ (void)initialize { + NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; + + if ((debugOn = [ud boolForKey:@"EOCoreDataSourceDebugEnabled"])) + NSLog(@"EOCoreDataSource: debugging enabled."); +} + - (id)initWithManagedObjectContext:(NSManagedObjectContext *)_moc entity:(NSEntityDescription *)_entity { diff --git a/sope-core/EOCoreData/GNUmakefile b/sope-core/EOCoreData/GNUmakefile index 9273edf5..f9fdc86b 100644 --- a/sope-core/EOCoreData/GNUmakefile +++ b/sope-core/EOCoreData/GNUmakefile @@ -54,6 +54,9 @@ libEOCoreData_OBJC_FILES += \ NSRelationshipDescription+EO.m \ NSManagedObject+KVC.m \ +libEOCoreData_OBJC_FILES += \ + NSString+CoreData.m + # framework support EOCoreData_HEADER_FILES = $(libEOCoreData_HEADER_FILES) EOCoreData_OBJC_FILES = $(libEOCoreData_OBJC_FILES) diff --git a/sope-core/EOCoreData/NSString+CoreData.m b/sope-core/EOCoreData/NSString+CoreData.m new file mode 100644 index 00000000..cf0e6454 --- /dev/null +++ b/sope-core/EOCoreData/NSString+CoreData.m @@ -0,0 +1,30 @@ +/* + Copyright (C) 2005 SKYRIX Software AG + + This file is part of SOPE. + + SOPE is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + SOPE is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with SOPE; see the file COPYING. If not, write to the + Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. +*/ + +#include "common.h" + +@implementation NSString(CoreData) + +- (NSPredicate *)asPredicate { + return [NSPredicate predicateWithFormat:self arguments:nil]; +} + +@end /* NSString(CoreData) */ diff --git a/sope-core/EOCoreData/Version b/sope-core/EOCoreData/Version index 46a90fec..f7255071 100644 --- a/sope-core/EOCoreData/Version +++ b/sope-core/EOCoreData/Version @@ -1,3 +1,3 @@ # version file -SUBMINOR_VERSION:=8 +SUBMINOR_VERSION:=9