Revision: 7597
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7597&view=rev
Author:   hofman
Date:     2011-12-24 00:10:09 +0000 (Sat, 24 Dec 2011)
Log Message:
-----------
make sure we don't set a nil string

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

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-12-24 00:08:59 UTC (rev 7596)
+++ trunk/SKFindController.m    2011-12-24 00:10:09 UTC (rev 7597)
@@ -113,7 +113,7 @@
 - (void)updateFindPboard {
     NSPasteboard *findPboard = [NSPasteboard pasteboardWithName:NSFindPboard];
     [findPboard declareTypes:[NSArray arrayWithObject:NSStringPboardType] 
owner:nil];
-    [findPboard setString:findString forType:NSStringPboardType];
+    [findPboard setString:findString ?: @"" forType:NSStringPboardType];
     lastChangeCount = [findPboard changeCount];
 }
 

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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to