Revision: 7469
http://skim-app.svn.sourceforge.net/skim-app/?rev=7469&view=rev
Author: hofman
Date: 2011-09-07 10:20:55 +0000 (Wed, 07 Sep 2011)
Log Message:
-----------
use fast enumeration and combine statements
Modified Paths:
--------------
trunk/SKApplicationController.m
Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m 2011-09-05 11:01:23 UTC (rev 7468)
+++ trunk/SKApplicationController.m 2011-09-07 10:20:55 UTC (rev 7469)
@@ -173,13 +173,8 @@
[sud synchronize];
}
- NSArray *files = [sud objectForKey:SKLastOpenFileNamesKey];
- NSEnumerator *fileEnum = [files reverseObjectEnumerator];
- NSDictionary *dict;
- NSError *error;
-
- while (dict = [fileEnum nextObject]) {
- error = nil;
+ for (NSDictionary *dict in [[sud objectForKey:SKLastOpenFileNamesKey]
reverseObjectEnumerator]) {
+ NSError *error;
if (nil == [[NSDocumentController sharedDocumentController]
openDocumentWithSetup:dict error:&error] && error && [error
isUserCancelledError] == NO)
[NSApp presentError:error];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit