Commits

Anonymous committed 5dcea78

Add menu for copyByDayTextReport:, add total line

Comments (0)

Files changed (4)

English.lproj/MainMenu.nib/classes.nib

-{
-    IBClasses = (
-        {
-            ACTIONS = {copyTextReport = id; }; 
-            CLASS = FirstResponder; 
-            LANGUAGE = ObjC; 
-            SUPERCLASS = NSObject; 
-        }
-    ); 
-    IBVersion = 1; 
-}
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IBClasses</key>
+	<array>
+		<dict>
+			<key>ACTIONS</key>
+			<dict>
+				<key>copyByDayTextReport</key>
+				<string>id</string>
+				<key>copyTextReport</key>
+				<string>id</string>
+			</dict>
+			<key>CLASS</key>
+			<string>FirstResponder</string>
+			<key>LANGUAGE</key>
+			<string>ObjC</string>
+			<key>SUPERCLASS</key>
+			<string>NSObject</string>
+		</dict>
+	</array>
+	<key>IBVersion</key>
+	<string>1</string>
+</dict>
+</plist>

English.lproj/MainMenu.nib/info.nib

 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-	<key>IBDocumentLocation</key>
-	<string>205 176 356 240 0 0 2560 1578 </string>
-	<key>IBEditorPositions</key>
-	<dict>
-		<key>29</key>
-		<string>208 548 338 44 0 0 2560 1578 </string>
-	</dict>
 	<key>IBFramework Version</key>
-	<string>443.0</string>
+	<string>672</string>
+	<key>IBLastKnownRelativeProjectPath</key>
+	<string>../TaskTracker2.xcodeproj</string>
 	<key>IBOldestOS</key>
 	<integer>4</integer>
 	<key>IBOpenObjects</key>
 	<array>
-		<integer>29</integer>
+		<integer>169</integer>
 	</array>
 	<key>IBSystem Version</key>
-	<string>8G32</string>
+	<string>9G55</string>
+	<key>targetFramework</key>
+	<string>IBCocoaFramework</string>
 </dict>
 </plist>

English.lproj/MainMenu.nib/keyedobjects.nib

Binary file modified.
     }
     
     NSArray * days = [timeByDay allKeys];
-    NSLog(@"days: %@", days);
     days = [days sortedArrayUsingSelector:@selector(compare:)];
-    NSLog(@"days: %@", days);
+    NSTimeInterval totalBilledTime = 0;
     nsenumerate(days, NSString, day) {
         NSTimeInterval billedTime = [[timeByDay objectForKey:day] doubleValue];
+        totalBilledTime += billedTime;
 		[output appendFormat:@"%@  %@\n", day, [IntervalFormatter format:billedTime]];
     }
-    	
+	[output appendFormat:@"----------  -----------\n"];
+	[output appendFormat:@"Total       %@", [IntervalFormatter format:totalBilledTime]];
+    
 	paste( output );
 }