Revision: 2546
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2546&view=rev
Author:   hofman
Date:     2007-07-23 04:58:56 -0700 (Mon, 23 Jul 2007)

Log Message:
-----------
Sort note contents case insensitive and numerically, in case someone wants to 
label notes with some description including numbers.

Modified Paths:
--------------
    trunk/SKNotesDocument.m

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2007-07-23 11:58:31 UTC (rev 2545)
+++ trunk/SKNotesDocument.m     2007-07-23 11:58:56 UTC (rev 2546)
@@ -68,7 +68,7 @@
     [aController setShouldCloseDocument:YES];
     
     NSSortDescriptor *indexSortDescriptor = [[[NSSortDescriptor alloc] 
initWithKey:@"pageIndex" ascending:YES] autorelease];
-    NSSortDescriptor *contentsSortDescriptor = [[[NSSortDescriptor alloc] 
initWithKey:@"contents" ascending:YES] autorelease];
+    NSSortDescriptor *contentsSortDescriptor = [[[NSSortDescriptor alloc] 
initWithKey:@"contents" ascending:YES 
selector:@selector(caseInsensitiveNumericCompare:)] autorelease];
     [arrayController setSortDescriptors:[NSArray 
arrayWithObjects:indexSortDescriptor, contentsSortDescriptor, nil]];
     [outlineView reloadData];
 }


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to