From b2aa2c76bc4755e76542cce78e0f81c7e95a7d01 Mon Sep 17 00:00:00 2001 From: CaS Date: Tue, 17 Sep 2002 11:47:55 +0000 Subject: [PATCH] Use efficient file attribute dictionary accessors. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14477 72102866-910b-0410-8b05-ffd578937521 --- Tools/autogsdoc.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tools/autogsdoc.m b/Tools/autogsdoc.m index 0b0fc32ae..117bd471a 100644 --- a/Tools/autogsdoc.m +++ b/Tools/autogsdoc.m @@ -536,7 +536,7 @@ main(int argc, char **argv, char **env) [projectRefs mergeRefs: originalIndex override: NO]; dict = [mgr fileAttributesAtPath: refsFile traverseLink: YES]; - rDate = [dict objectForKey: NSFileModificationDate]; + rDate = [dict fileModificationDate]; } } @@ -628,7 +628,7 @@ main(int argc, char **argv, char **env) attrs = [mgr fileAttributesAtPath: sfile traverseLink: YES]; - d = [attrs objectForKey: NSFileModificationDate]; + d = [attrs fileModificationDate]; if (sDate == nil || [d earlierDate: sDate] == sDate) { sDate = d; @@ -655,7 +655,7 @@ main(int argc, char **argv, char **env) NSString *ofile = [a objectAtIndex: j]; attrs = [mgr fileAttributesAtPath: ofile traverseLink: YES]; - d = [attrs objectForKey: NSFileModificationDate]; + d = [attrs fileModificationDate]; if (gDate == nil || [d laterDate: gDate] == gDate) { gDate = d; @@ -843,7 +843,7 @@ main(int argc, char **argv, char **env) if (ignoreDependencies == NO) { attrs = [mgr fileAttributesAtPath: gsdocfile traverseLink: YES]; - gDate = [attrs objectForKey: NSFileModificationDate]; + gDate = [attrs fileModificationDate]; AUTORELEASE(RETAIN(gDate)); } @@ -1133,10 +1133,10 @@ main(int argc, char **argv, char **env) * When were the files last modified? */ attrs = [mgr fileAttributesAtPath: gsdocfile traverseLink: YES]; - gDate = [attrs objectForKey: NSFileModificationDate]; + gDate = [attrs fileModificationDate]; AUTORELEASE(RETAIN(gDate)); attrs = [mgr fileAttributesAtPath: htmlfile traverseLink: YES]; - hDate = [attrs objectForKey: NSFileModificationDate]; + hDate = [attrs fileModificationDate]; AUTORELEASE(RETAIN(hDate)); }