Revision: 6954
http://skim-app.svn.sourceforge.net/skim-app/?rev=6954&view=rev
Author: hofman
Date: 2010-12-09 12:32:47 +0000 (Thu, 09 Dec 2010)
Log Message:
-----------
use self instead of class name in class factory method
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2010-12-09 12:21:30 UTC (rev 6953)
+++ trunk/SKBookmark.m 2010-12-09 12:32:47 UTC (rev 6954)
@@ -137,13 +137,13 @@
Class docClass;
SKBookmark *bookmark;
if ([fileType isEqualToString:SKFolderDocumentType]) {
- NSArray *children = [SKBookmark bookmarksForPaths:[fm
contentsOfDirectoryAtPath:path error:NULL] relativeToPath:path];
- if ([children count] && (bookmark = [[SKBookmark alloc]
initFolderWithChildren:children label:[fm displayNameAtPath:path]])) {
+ NSArray *children = [self bookmarksForPaths:[fm
contentsOfDirectoryAtPath:path error:NULL] relativeToPath:path];
+ if ([children count] && (bookmark = [[self alloc]
initFolderWithChildren:children label:[fm displayNameAtPath:path]])) {
[array addObject:bookmark];
[bookmark release];
}
} else if (docClass = [dc documentClassForType:fileType]) {
- if (bookmark = [[SKBookmark alloc] initWithPath:path
pageIndex:([docClass isPDFDocument] ? 0 : NSNotFound) label:[fm
displayNameAtPath:path]]) {
+ if (bookmark = [[self alloc] initWithPath:path
pageIndex:([docClass isPDFDocument] ? 0 : NSNotFound) label:[fm
displayNameAtPath:path]]) {
[array addObject:bookmark];
[bookmark release];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:
WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit