diff --git a/Apps/EOModelEditor/EOMEDocument.m b/Apps/EOModelEditor/EOMEDocument.m index 0928352..dffe827 100644 --- a/Apps/EOModelEditor/EOMEDocument.m +++ b/Apps/EOModelEditor/EOMEDocument.m @@ -69,6 +69,15 @@ NSString *EOMConsistencyModelObjectKey = @"EOMConsistencyModelObjectKey"; // [storedProceduresItem retain]; } +- (id) init +{ + self = [super init]; + if (self) + { + _eomodel = [EOModel new]; + } + return self; +} - (void) dealloc { @@ -447,18 +456,7 @@ NSString *EOMConsistencyModelObjectKey = @"EOMConsistencyModelObjectKey"; NS_DURING { -#ifdef GNUSTEP - -#warning "see http://savannah.gnu.org/bugs/index.php?30348" -#else - NSFileManager * manager = [NSFileManager defaultManager]; - - [manager copyItemAtURL:[self fileURL] - toURL:absoluteURL error:outError]; - -#endif - - [_eomodel writeToFile: [absoluteURL path]]; + [_eomodel writeToFile: [absoluteURL path]]; } NS_HANDLER { @@ -470,8 +468,6 @@ NSString *EOMConsistencyModelObjectKey = @"EOMConsistencyModelObjectKey"; userInfo:userInfo]; return NO; } NS_ENDHANDLER; - // 'file://localhost/Users/dave/dev/PBXBilling/trunk/PBX.eomodeld/' - // NSLog(@"fileURL '%@'", [self fileURL]); return YES; } diff --git a/ChangeLog b/ChangeLog index b9cb03e..30c415a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-06-22: Graham Lee + * Apps/EOModelEditor/EOMEDocument.m + fix saving of new created models and make the Inspector + work on OSX + 2013-06-22: Graham Lee * EOModeler/EOModelExtensions.m include the right header on OS X