Revision: 6580
http://skim-app.svn.sourceforge.net/skim-app/?rev=6580&view=rev
Author: hofman
Date: 2010-06-09 11:38:29 +0000 (Wed, 09 Jun 2010)
Log Message:
-----------
rename parameter to avoid collision with global
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2010-06-09 11:29:36 UTC (rev 6579)
+++ trunk/SKMainWindowController.m 2010-06-09 11:38:29 UTC (rev 6580)
@@ -629,17 +629,17 @@
[tv sizeToFit];
}
-- (NSDictionary *)openStateForOutline:(PDFOutline *)outline {
+- (NSDictionary *)openStateForOutline:(PDFOutline *)anOutline {
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
- [dict setValue:[outline label] forKey:@"label"];
- BOOL isOpen = ([outline parent] == nil ||
[leftSideController.tocOutlineView isItemExpanded:outline]);
+ [dict setValue:[anOutline label] forKey:@"label"];
+ BOOL isOpen = ([anOutline parent] == nil ||
[leftSideController.tocOutlineView isItemExpanded:anOutline]);
[dict setValue:[NSNumber numberWithBool:isOpen] forKey:@"isOpen"];
if (isOpen) {
- NSUInteger i, iMax = [outline numberOfChildren];
+ NSUInteger i, iMax = [anOutline numberOfChildren];
if (iMax > 0) {
NSMutableArray *array = [[NSMutableArray alloc] init];
for (i = 0; i < iMax; i++)
- [array addObject:[self openStateForOutline:[outline
childAtIndex:i]]];
+ [array addObject:[self openStateForOutline:[anOutline
childAtIndex:i]]];
[dict setValue:array forKey:@"children"];
[array release];
}
@@ -647,16 +647,16 @@
return dict;
}
-- (void)openOutline:(PDFOutline *)outline forOpenState:(NSDictionary *)info {
- BOOL isOpen = info ? [[info valueForKey:@"isOpen"] boolValue] : [outline
isOpen];
+- (void)openOutline:(PDFOutline *)anOutline forOpenState:(NSDictionary *)info {
+ BOOL isOpen = info ? [[info valueForKey:@"isOpen"] boolValue] : [anOutline
isOpen];
if (isOpen) {
- NSUInteger i, iMax = [outline numberOfChildren];
+ NSUInteger i, iMax = [anOutline numberOfChildren];
NSMutableArray *children = [[NSMutableArray alloc] init];
for (i = 0; i < iMax; i++)
- [children addObject:[outline childAtIndex:i]];
+ [children addObject:[anOutline childAtIndex:i]];
NSArray *childrenStates = [info valueForKey:@"children"];
- if ([outline parent])
- [leftSideController.tocOutlineView expandItem:outline];
+ if ([anOutline parent])
+ [leftSideController.tocOutlineView expandItem:anOutline];
NSEnumerator *infoEnum = nil;
if ([[children valueForKey:@"label"] isEqualToArray:[childrenStates
valueForKey:@"label"]])
infoEnum = [childrenStates objectEnumerator];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit