Skip to content
Browse files

CoreData vertrau ma spaeter ...oda goanet

  • Loading branch information...
1 parent 710d60a commit 4f2f08d3336a1c9e5685df0ed2f734b3a5ffc8b3 BlackandCold committed
Showing with 32 additions and 6 deletions.
  1. +13 −2 Classes/Entities/Context.m
  2. +14 −1 Classes/Entities/Folder.m
  3. +5 −3 Less2Do.xcodeproj/project.pbxproj
View
15 Classes/Entities/Context.m
@@ -117,8 +117,19 @@ + (NSArray *)getAllContextsInStore:(NSError **)error
+ (NSArray *) getAllContexts:(NSError **)error
{
- NSArray* objects = [Context getContextsWithFilterString:@"deleted == NO" error:error];
- return objects;
+ NSArray* objects = [Context getContextsWithFilterString:@"deleted == NO" error:error];
+
+ NSMutableArray *notDeleted = [NSMutableArray array];
+
+ for(Context *c in objects)
+ {
+ if([c.deleted boolValue] == NO)
+ {
+ [notDeleted addObject:c];
+ }
+ }
+
+ return [NSArray arrayWithArray:notDeleted];
}
+ (NSArray *)getRemoteStoredContexts:(NSError **)error
View
15 Classes/Entities/Folder.m
@@ -110,7 +110,20 @@ + (NSArray *)getAllFoldersInStore:(NSError **)error
+ (NSArray *) getAllFolders:(NSError **)error
{
NSArray* objects = [Folder getFoldersWithFilterString:@"deleted == NO" error:error];
- return objects;
+
+ NSMutableArray *notDeleted = [NSMutableArray array];
+
+ for(Folder *f in objects)
+ {
+ if([f.deleted boolValue] == NO)
+ {
+ [notDeleted addObject:f];
+ }
+ }
+
+ return [NSArray arrayWithArray:notDeleted];
+
+ //return objects;
}
+ (NSArray *)getFolderWithRGB:(NSNumber *)red green:(NSNumber *)green blue:(NSNumber *)blue error:(NSError *)error
View
8 Less2Do.xcodeproj/project.pbxproj
@@ -768,7 +768,7 @@
39B659F910B7080D00825C1D /* Products */ = {
isa = PBXGroup;
children = (
- 39B65A0110B7080D00825C1D /* libToodledoAPI.a */,
+ 39B65A0110B7080D00825C1D /* liblibToodledoAPI.a */,
39F5AFCA10ED19AF00E54EB1 /* libToodledoAPIMac.a */,
39B65A0310B7080D00825C1D /* UnitTests.octest */,
39F5AFCC10ED19AF00E54EB1 /* liblibToodledoAPIiPhone.a */,
@@ -1019,10 +1019,10 @@
/* End PBXProject section */
/* Begin PBXReferenceProxy section */
- 39B65A0110B7080D00825C1D /* libToodledoAPI.a */ = {
+ 39B65A0110B7080D00825C1D /* liblibToodledoAPI.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
- path = libToodledoAPI.a;
+ path = liblibToodledoAPI.a;
remoteRef = 39B65A0010B7080D00825C1D /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
@@ -1241,6 +1241,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -1266,6 +1267,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
COPY_PHASE_STRIP = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",

0 comments on commit 4f2f08d

Please sign in to comment.
Something went wrong with that request. Please try again.