* EOAccess/EOEntity.m ([EOEntity -initWithPropertyList:owner:]): read

<entityName>.fspec only if exists.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@15243 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Mirko Viviani 2002-12-04 17:49:17 +00:00
parent be52a0e7e7
commit c3416d5bb6
2 changed files with 11 additions and 6 deletions

View file

@ -1,5 +1,8 @@
2002-12-04 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* EOAccess/EOEntity.m ([EOEntity -initWithPropertyList:owner:]): read
<entityName>.fspec only if exists.
* EOControl/EOKeyValueCoding.m ([NSArray -valueForKeyPath:]):
implemented the case of invoking an aggregate function using a simple
key.

View file

@ -277,14 +277,16 @@ NSString *EONextPrimaryKeyProcedureOperation = @"EONextPrimaryKeyProcedureOperat
// load entity's FetchSpecifications
{
NSDictionary *plist;
NSDictionary *plist = nil;
NSString *fileName;
fileName = [NSString stringWithFormat: @"%@.fspec", _name];
plist = [[NSString stringWithContentsOfFile:
[[(EOModel *)owner path]
stringByAppendingPathComponent: fileName]]
propertyList];
if ([[NSFileManager defaultManager] fileExistsAtPath: fileName])
plist = [[NSString stringWithContentsOfFile:
[[(EOModel *)owner path]
stringByAppendingPathComponent: fileName]]
propertyList];
if (plist)
{