Revision: 5660
http://skim-app.svn.sourceforge.net/skim-app/?rev=5660&view=rev
Author: hofman
Date: 2009-09-04 10:34:09 +0000 (Fri, 04 Sep 2009)
Log Message:
-----------
replace some more deprecated NSFileManager methods
Modified Paths:
--------------
trunk/SKInfoWindowController.m
trunk/SKPDFDocument.m
Modified: trunk/SKInfoWindowController.m
===================================================================
--- trunk/SKInfoWindowController.m 2009-09-04 10:26:26 UTC (rev 5659)
+++ trunk/SKInfoWindowController.m 2009-09-04 10:34:09 UTC (rev 5660)
@@ -133,7 +133,7 @@
if (gotSize == NO) {
// this seems to give the logical size
- NSDictionary *fileAttrs = [[NSFileManager defaultManager]
fileAttributesAtPath:[fileURL path] traverseLink:NO];
+ NSDictionary *fileAttrs = [[NSFileManager defaultManager]
attributesOfItemAtPath:[fileURL path] error:NULL];
logicalSize = size = [[fileAttrs objectForKey:NSFileSize]
unsignedLongLongValue];
isDir = [[fileAttrs fileType] isEqualToString:NSFileTypeDirectory];
}
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2009-09-04 10:26:26 UTC (rev 5659)
+++ trunk/SKPDFDocument.m 2009-09-04 10:34:09 UTC (rev 5660)
@@ -448,7 +448,7 @@
[self updateChangeCount:NSChangeCleared];
docFlags.fileChangedOnDisk = NO;
[lastModifiedDate release];
- lastModifiedDate = [[[[NSFileManager defaultManager]
fileAttributesAtPath:[self fileName] traverseLink:YES] fileModificationDate]
retain];
+ lastModifiedDate = [[[[NSFileManager defaultManager]
attributesOfItemAtPath:[self fileName] error:NULL] fileModificationDate]
retain];
}
[self checkFileUpdatesIfNeeded];
docFlags.isSaving = NO;
@@ -768,7 +768,7 @@
[pdfDoc release];
docFlags.fileChangedOnDisk = NO;
[lastModifiedDate release];
- lastModifiedDate = [[[[NSFileManager defaultManager]
fileAttributesAtPath:[absoluteURL path] traverseLink:YES] fileModificationDate]
retain];
+ lastModifiedDate = [[[[NSFileManager defaultManager]
attributesOfItemAtPath:[absoluteURL path] error:NULL] fileModificationDate]
retain];
NSDictionary *dictionary = nil;
NSArray *array = nil;
@@ -1287,7 +1287,7 @@
}
- (void)checkForFileModification:(NSTimer *)timer {
- NSDate *currentFileModifiedDate = [[[NSFileManager defaultManager]
fileAttributesAtPath:[self fileName] traverseLink:YES] fileModificationDate];
+ NSDate *currentFileModifiedDate = [[[NSFileManager defaultManager]
attributesOfItemAtPath:[self fileName] error:NULL] fileModificationDate];
if (nil == lastModifiedDate) {
lastModifiedDate = [currentFileModifiedDate copy];
} else if ([lastModifiedDate compare:currentFileModifiedDate] ==
NSOrderedAscending) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit