mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
* Apps/EOModelEditor/EOMEDocument.m
fix saving of new created models and make the Inspector work on OSX git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36745 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
da91bc5184
commit
8af32fca81
2 changed files with 15 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2013-06-22: Graham Lee <iamleeg@gmail.com>
|
||||
* Apps/EOModelEditor/EOMEDocument.m
|
||||
fix saving of new created models and make the Inspector
|
||||
work on OSX
|
||||
|
||||
2013-06-22: Graham Lee <iamleeg@gmail.com>
|
||||
* EOModeler/EOModelExtensions.m
|
||||
include the right header on OS X
|
||||
|
|
Loading…
Reference in a new issue