Revision: 18487
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18487&view=rev
Author:   hofman
Date:     2012-02-04 22:31:25 +0000 (Sat, 04 Feb 2012)
Log Message:
-----------
workaround for Lion crasher

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderIcon.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderIcon.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderIcon.m    2012-02-04 
18:05:28 UTC (rev 18486)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderIcon.m    2012-02-04 
22:31:25 UTC (rev 18487)
@@ -244,7 +244,15 @@
 
 static CGImageRef __FVCreateFullImageWithIcon(IconRef icon)
 {
-    return __FVCreateImageWithIcon(icon, FVMaxImageDimension, 
FVMaxImageDimension);
+    size_t dim = FVMaxImageDimension;
+    /*
+     Crash under _ISGetCGImageRefForISImageRef as of 10.7.3.  This seems to 
avoid the crash,
+     but I've no idea if it's a truly good workaround.  Apply to all 10.7.x 
systems for now.
+     rdar://problem/10809538 
+     */
+    if (floor(NSAppKitVersionNumber) >= 1138)
+        dim = 200;
+    return __FVCreateImageWithIcon(icon, dim, dim);
 }
 
 @implementation FVSingletonFinderIcon

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to