Revision: 2719
http://skim-app.svn.sourceforge.net/skim-app/?rev=2719&view=rev
Author: hofman
Date: 2007-08-26 02:40:06 -0700 (Sun, 26 Aug 2007)
Log Message:
-----------
Select row for contextual menu in some tables.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-08-24 17:17:30 UTC (rev 2718)
+++ trunk/SKMainWindowController.m 2007-08-26 09:40:06 UTC (rev 2719)
@@ -3353,6 +3353,8 @@
NSMenuItem *menuItem;
if ([ov isEqual:noteOutlineView]) {
+ [outlineView selectRowIndexes:[NSIndexSet
indexSetWithIndex:[outlineView rowForItem:item]] byExtendingSelection:NO];
+
PDFAnnotation *annotation = [item type] ? item : [(SKNoteText *)item
annotation];
menu = [[[NSMenu allocWithZone:[NSMenu menuZone]] init] autorelease];
if ([self outlineView:ov canDeleteItems:[NSArray
arrayWithObjects:item, nil]]) {
@@ -3581,6 +3583,8 @@
[menuItem setTarget:self];
[menuItem setRepresentedObject:[[pdfView document] pageAtIndex:row]];
} else if ([tv isEqual:snapshotTableView]) {
+ [snapshotTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row]
byExtendingSelection:NO];
+
menu = [[[NSMenu allocWithZone:[NSMenu menuZone]] init] autorelease];
SKSnapshotWindowController *controller = [[snapshotArrayController
arrangedObjects] objectAtIndex:row];
NSMenuItem *menuItem = [menu
addItemWithTitle:NSLocalizedString(@"Delete", @"Menu item title")
action:@selector(deleteSnapshot:) keyEquivalent:@""];
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