Revision: 12279
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12279&view=rev
Author:   amaxwell
Date:     2008-01-05 10:48:31 -0800 (Sat, 05 Jan 2008)

Log Message:
-----------
Insert URLs in the middle, so it's easy to see if they're stalling drawing
(they are; fix forthcoming).

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView Program/Controller.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView 
Program/Controller.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView Program/Controller.m     
2008-01-05 18:47:29 UTC (rev 12278)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView Program/Controller.m     
2008-01-05 18:48:31 UTC (rev 12279)
@@ -46,14 +46,16 @@
         path = [files objectAtIndex:i];
         [arrayController addObject:[NSURL fileURLWithPath:[base 
stringByAppendingPathComponent:path]]];
     }
-    [arrayController addObject:[NSNull null]];
-    [arrayController addObject:[NSURL 
URLWithString:@"http://www.macintouch.com/";]];
-    [arrayController addObject:[NSURL 
URLWithString:@"http://bibdesk.sf.net/";]];
-    [arrayController addObject:[NSURL 
URLWithString:@"http://www-chaos.engr.utk.edu/pap/crg-aiche2000daw-paper.pdf";]];
-    [arrayController addObject:[NSURL 
URLWithString:@"http://dx.doi.org/10.1023/A:1018361121952";]];
     
+    NSUInteger insertIndex = floor(iMax / 2);
+    [arrayController insertObject:[NSNull null] 
atArrangedObjectIndex:insertIndex++];
+    [arrayController insertObject:[NSURL 
URLWithString:@"http://www.macintouch.com/";] 
atArrangedObjectIndex:insertIndex++];
+    [arrayController insertObject:[NSURL 
URLWithString:@"http://bibdesk.sf.net/";] atArrangedObjectIndex:insertIndex++];
+    [arrayController insertObject:[NSURL 
URLWithString:@"http://www-chaos.engr.utk.edu/pap/crg-aiche2000daw-paper.pdf";] 
atArrangedObjectIndex:insertIndex++];
+    [arrayController insertObject:[NSURL 
URLWithString:@"http://dx.doi.org/10.1023/A:1018361121952";] 
atArrangedObjectIndex:insertIndex++];
+    
     // nonexistent domain
-    [arrayController addObject:[NSURL 
URLWithString:@"http://bibdesk.sourceforge.tld/";]];
+    [arrayController insertObject:[NSURL 
URLWithString:@"http://bibdesk.sourceforge.tld/";] 
atArrangedObjectIndex:insertIndex++];
     
     [_fileView bind:@"iconURLs" toObject:arrayController 
withKeyPath:@"arrangedObjects" options:nil];
     [_fileView bind:@"selectionIndexes" toObject:arrayController 
withKeyPath:@"selectionIndexes" options:nil];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to