]> err.no Git - sope/commitdiff
added debug default
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 23 Aug 2005 00:24:19 +0000 (00:24 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 23 Aug 2005 00:24:19 +0000 (00:24 +0000)
added NSString cat

git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1064 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-core/EOCoreData/ChangeLog
sope-core/EOCoreData/EOCoreDataSource.m
sope-core/EOCoreData/GNUmakefile
sope-core/EOCoreData/NSString+CoreData.m [new file with mode: 0644]
sope-core/EOCoreData/Version

index 2d5ff83df1eef38d47cca03ec445f1f9333f901b..6d9e8977c8fc93b7bab6a81e6cbeccf8360cc27d 100644 (file)
@@ -1,3 +1,12 @@
+2005-08-23  Helge Hess  <helge.hess@opengroupware.org>
+
+       * 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  <znek@mulle-kybernetik.com>
 
        * EOCoreData-Info.plist: new Xcode Info.plist file
index 9a084617e3312a88f78d0c67a5d81ff5109802ba..d569d1bd6188b1457a0580ee4dc58f4af8f75a5f 100644 (file)
@@ -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
 {
index 9273edf58dc8ae0eebef89b8ddc40e4221ae23ef..f9fdc86b8106d98ca3f56f89b11fb780688590fa 100644 (file)
@@ -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 (file)
index 0000000..cf0e645
--- /dev/null
@@ -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) */
index 46a90fece8d9225fe5e08bb0a71cc5146b9dcdf2..f725507183992c451c63ba6d27aef6b943c23b07 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=8
+SUBMINOR_VERSION:=9