Revision: 4779
http://skim-app.svn.sourceforge.net/skim-app/?rev=4779&view=rev
Author: hofman
Date: 2008-10-12 20:20:15 +0000 (Sun, 12 Oct 2008)
Log Message:
-----------
Make sure item for contextual menu is selected in notes document
Modified Paths:
--------------
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2008-10-12 17:51:48 UTC (rev 4778)
+++ trunk/SKNotesDocument.m 2008-10-12 20:20:15 UTC (rev 4779)
@@ -557,6 +557,9 @@
}
- (NSMenu *)outlineView:(NSOutlineView *)ov menuForTableColumn:(NSTableColumn
*)tableColumn item:(id)item {
+ if ([outlineView isRowSelected:[outlineView rowForItem:item]] == NO)
+ [outlineView selectRowIndexes:[NSIndexSet
indexSetWithIndex:[outlineView rowForItem:item]] byExtendingSelection:NO];
+
NSMenu *menu = nil;
NSMenuItem *menuItem;
NSMutableArray *items = [NSMutableArray array];
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit