Revision: 5386
http://skim-app.svn.sourceforge.net/skim-app/?rev=5386&view=rev
Author: hofman
Date: 2009-05-20 16:31:33 +0000 (Wed, 20 May 2009)
Log Message:
-----------
return an empty string rather than nil for tool tip overrides
Modified Paths:
--------------
trunk/PDFAnnotationLink_SKExtensions.m
trunk/SKNPDFAnnotationNote_SKExtensions.m
Modified: trunk/PDFAnnotationLink_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationLink_SKExtensions.m 2009-05-19 15:15:06 UTC (rev
5385)
+++ trunk/PDFAnnotationLink_SKExtensions.m 2009-05-20 16:31:33 UTC (rev
5386)
@@ -53,11 +53,11 @@
static id (*original_toolTipNoLabel)(id, SEL) = NULL;
- (NSString *)replacement_toolTip {
- return ([self URL] || [self destination] || original_toolTip == NULL) ?
nil : original_toolTip(self, _cmd);
+ return ([self URL] || [self destination] || original_toolTip == NULL) ?
@"" : original_toolTip(self, _cmd);
}
- (NSString *)replacement_toolTipNoLabel {
- return ([self URL] || [self destination] || original_toolTipNoLabel ==
NULL) ? nil : original_toolTipNoLabel(self, _cmd);
+ return ([self URL] || [self destination] || original_toolTipNoLabel ==
NULL) ? @"" : original_toolTipNoLabel(self, _cmd);
}
+ (void)load {
Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m 2009-05-19 15:15:06 UTC (rev
5385)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m 2009-05-20 16:31:33 UTC (rev
5386)
@@ -94,8 +94,8 @@
- (BOOL)isEditable { return [self isSkimNote]; }
// override these Leopard methods to avoid showing the standard tool tips over
our own
-- (NSString *)toolTip { return nil; }
-- (NSString *)toolTipNoLabel { return nil; }
+- (NSString *)toolTip { return @""; }
+- (NSString *)toolTipNoLabel { return @""; }
- (PDFAnnotationPopup *)popup { return nil; }
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit