Revision: 2790
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2790&view=rev
Author:   hofman
Date:     2007-08-30 16:39:19 -0700 (Thu, 30 Aug 2007)

Log Message:
-----------
Add tool tips for note table.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-08-30 20:49:33 UTC (rev 2789)
+++ trunk/SKMainWindowController.m      2007-08-30 23:39:19 UTC (rev 2790)
@@ -3248,6 +3248,13 @@
     }
 }
 
+- (NSString *)outlineView:(NSOutlineView *)ov toolTipForCell:(NSCell *)cell 
rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tableColumn item:(id)item 
mouseLocation:(NSPoint)mouseLocation {
+    if ([ov isEqual:noteOutlineView] && [[tableColumn identifier] 
isEqualToString:@"note"]) {
+        return [item type] ? [(PDFAnnotation *)item contents] : [[(SKNoteText 
*)item contents] string];
+    }
+    return nil;
+}
+
 - (void)outlineViewItemDidExpand:(NSNotification *)notification{
     if ([[notification object] isEqual:outlineView]) {
         [self updateOutlineSelection];


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