Revision: 3179 http://skim-app.svn.sourceforge.net/skim-app/?rev=3179&view=rev Author: hofman Date: 2007-11-07 10:53:40 -0800 (Wed, 07 Nov 2007)
Log Message: ----------- Don't change the items variable as we are still using it. Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2007-11-07 18:51:10 UTC (rev 3178) +++ trunk/SKMainWindowController.m 2007-11-07 18:53:40 UTC (rev 3179) @@ -3775,11 +3775,11 @@ if ([noteOutlineView isRowSelected:[noteOutlineView rowForItem:item]] == NO) [noteOutlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[noteOutlineView rowForItem:item]] byExtendingSelection:NO]; - NSArray *items = [NSMutableArray array]; + NSMutableArray *items = [NSMutableArray array]; NSIndexSet *rowIndexes = [noteOutlineView selectedRowIndexes]; unsigned int row = [rowIndexes firstIndex]; while (row != NSNotFound) { - [(NSMutableArray *)items addObject:[noteOutlineView itemAtRow:row]]; + [items addObject:[noteOutlineView itemAtRow:row]]; row = [rowIndexes indexGreaterThanIndex:row]; } @@ -3795,9 +3795,9 @@ [menuItem setRepresentedObject:item]; } if ([pdfView hideNotes] == NO) { - items = [self noteItems:items]; - if ([items count] == 1) { - PDFAnnotation *annotation = [items lastObject]; + NSArray *noteItems = [self noteItems:items]; + if ([noteItems count] == 1) { + PDFAnnotation *annotation = [noteItems lastObject]; if ([annotation isEditable]) { menuItem = [menu addItemWithTitle:NSLocalizedString(@"Edit", @"Menu item title") action:@selector(editThisAnnotation:) keyEquivalent:@""]; [menuItem setTarget:pdfView]; 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 Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit