Permalink
Browse files

cd fixes

  • Loading branch information...
1 parent b66482d commit c040d6d024ee41c54fa981407386cd61f674123b @coreyfloyd coreyfloyd committed Mar 29, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 DDCoreDataStack.m
View
@@ -84,7 +84,11 @@ + (NSURL*)versionedModelURLInBundle:(NSBundle*)bundle{
+ (NSArray*)versionedModeURLSInBundle:(NSBundle*)bundle{
- NSArray* urls = [bundle URLsForResourcesWithExtension:@"mom" subdirectory:nil];
+ NSURL* momd = [self versionedModelURLInBundle:bundle];
+ NSString* path = [momd path];
+ NSString* momdFileName = [path lastPathComponent];
+
+ NSArray* urls = [bundle URLsForResourcesWithExtension:@"mom" subdirectory:momdFileName];
return urls;

0 comments on commit c040d6d

Please sign in to comment.