Commits

vovasty  committed e068524

almost working

  • Participants
  • Parent commits fe1ddd6
  • Branches add_torrents_dialog

Comments (0)

Files changed (12)

File AddWindowController.h

     NSTimer * fTimer;
 }
 
-- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path lockDestination: (BOOL) lockDestination
-    controller: (Controller *) controller torrentFile: (NSString *) torrentFile
-    deleteTorrent: (BOOL) deleteTorrent canToggleDelete: (BOOL) canToggleDelete;
+- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path;
 
 - (Torrent *) torrent;
 

File AddWindowController.m

 
 @implementation AddWindowController
 
-- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path lockDestination: (BOOL) lockDestination
-    controller: (Controller *) controller torrentFile: (NSString *) torrentFile
-    deleteTorrent: (BOOL) deleteTorrent canToggleDelete: (BOOL) canToggleDelete
+- (id) initWithTorrent: (Torrent *) torrent destination: (NSString *) path
 {
     if ((self = [super initWithWindowNibName: @"AddWindow"]))
     {
         fTorrent = torrent;
         fDestination = [[path stringByExpandingTildeInPath] retain];
-        fLockDestination = lockDestination;
+//        fLockDestination = lockDestination;
         
-        fController = controller;
+//        fController = controller;
         
-        fTorrentFile = [[torrentFile stringByExpandingTildeInPath] retain];
+//        fTorrentFile = [[torrentFile stringByExpandingTildeInPath] retain];
         
-        fDeleteTorrentInitial = deleteTorrent;
-        fDeleteEnableInitial = canToggleDelete;
+//        fDeleteTorrentInitial = deleteTorrent;
+//        fDeleteEnableInitial = canToggleDelete;
         
-        fGroupValue = [torrent groupValue];
+//        fGroupValue = [torrent groupValue];
         
         [fVerifyIndicator setUsesThreadedAnimation: YES];
     }
     [fFileController setTorrent: fTorrent];
     
     NSString * name = [fTorrent name];
-    [[self window] setTitle: name];
+        //[[self window] setTitle: name];
     [fNameField setStringValue: name];
     [fNameField setToolTip: name];
     
     NSInteger priorityIndex;
     switch ([fTorrent priority])
     {
-        case TR_PRI_HIGH: priorityIndex = POPUP_PRIORITY_HIGH; break;
-        case TR_PRI_NORMAL: priorityIndex = POPUP_PRIORITY_NORMAL; break;
-        case TR_PRI_LOW: priorityIndex = POPUP_PRIORITY_LOW; break;
+        case NITorrentPriorityHigh: priorityIndex = POPUP_PRIORITY_HIGH; break;
+        case NITorrentPriorityNormal: priorityIndex = POPUP_PRIORITY_NORMAL; break;
+        case NITorrentPriorityLow: priorityIndex = POPUP_PRIORITY_LOW; break;
         default: NSAssert1(NO, @"Unknown priority for adding torrent: %d", [fTorrent priority]);
     }
     [fPriorityPopUp selectItemAtIndex: priorityIndex];
     [fTimer invalidate];
     
     [fDestination release];
-    [fTorrentFile release];
     
     [super dealloc];
 }
     
     [fFileController setTorrent: nil]; //avoid a crash when window tries to update
     
-    [fController askOpenConfirmed: self add: NO];
     return YES;
 }
 
-- (void) verifyLocalData: (id) sender
-{
-    [fTorrent resetCache];
-    [self updateFiles];
-}
-
 - (void) changePriority: (id) sender
 {
-    tr_priority_t priority;
+    TorrentPriority priority;
     switch ([sender indexOfSelectedItem])
     {
-        case POPUP_PRIORITY_HIGH: priority = TR_PRI_HIGH; break;
-        case POPUP_PRIORITY_NORMAL: priority = TR_PRI_NORMAL; break;
-        case POPUP_PRIORITY_LOW: priority = TR_PRI_LOW; break;
-        default: NSAssert1(NO, @"Unknown priority tag for adding torrent: %d", [sender tag]);
+        case POPUP_PRIORITY_HIGH: priority = NITorrentPriorityHigh; break;
+        case POPUP_PRIORITY_NORMAL: priority = NITorrentPriorityNormal; break;
+        case POPUP_PRIORITY_LOW: priority = NITorrentPriorityLow; break;
+        //default: NSAssert1(NO, @"Unknown priority tag for adding torrent: %d", [sender tag]);
     }
     [fTorrent setPriority: priority];
 }
 
 - (void) updateFiles
 {
-    [fTorrent update];
-    
-    [fFileController reloadData];
-    
-    if ([fTorrent isChecking])
-    {
-        const BOOL waiting = [fTorrent isCheckingWaiting];
-        [fVerifyIndicator setIndeterminate: waiting];
-        if (!waiting)
-            [fVerifyIndicator setDoubleValue: [fTorrent checkingProgress]];
-        
-        [fVerifyIndicator startAnimation: self];
-    }
-    else
-        [fVerifyIndicator stopAnimation: self];
 }
 
 - (void) confirmAdd

File English.lproj/AddWindow.xib

 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
 	<data>
 		<int key="IBDocument.SystemTarget">1060</int>
-		<string key="IBDocument.SystemVersion">10D573</string>
-		<string key="IBDocument.InterfaceBuilderVersion">762</string>
+		<string key="IBDocument.SystemVersion">10F569</string>
+		<string key="IBDocument.InterfaceBuilderVersion">788</string>
 		<string key="IBDocument.AppKitVersion">1038.29</string>
-		<string key="IBDocument.HIToolboxVersion">460.00</string>
+		<string key="IBDocument.HIToolboxVersion">461.00</string>
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
-			<string key="NS.object.0">762</string>
+			<string key="NS.object.0">788</string>
 		</object>
 		<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
 			<bool key="EncodedWithXMLCoder">YES</bool>
-			<integer value="3"/>
+			<integer value="4"/>
 		</object>
 		<object class="NSArray" key="IBDocument.PluginDependencies">
 			<bool key="EncodedWithXMLCoder">YES</bool>
 												<int key="NSArrowPosition">2</int>
 											</object>
 										</object>
-										<object class="NSProgressIndicator" id="593447562">
-											<reference key="NSNextResponder" ref="476951203"/>
-											<int key="NSvFlags">1292</int>
-											<object class="NSPSMatrix" key="NSDrawMatrix"/>
-											<string key="NSFrame">{{18, 31}, {135, 12}}</string>
-											<reference key="NSSuperview" ref="476951203"/>
-											<int key="NSpiFlags">24842</int>
-											<double key="NSMaxValue">1</double>
-										</object>
 										<object class="NSTextField" id="476522839">
 											<reference key="NSNextResponder" ref="476951203"/>
 											<int key="NSvFlags">265</int>
 												<reference key="NSTextColor" ref="399631964"/>
 											</object>
 										</object>
-										<object class="NSButton" id="470122373">
-											<reference key="NSNextResponder" ref="476951203"/>
-											<int key="NSvFlags">268</int>
-											<string key="NSFrame">{{12, 43}, {146, 32}}</string>
-											<reference key="NSSuperview" ref="476951203"/>
-											<bool key="NSEnabled">YES</bool>
-											<object class="NSButtonCell" key="NSCell" id="180850161">
-												<int key="NSCellFlags">67239424</int>
-												<int key="NSCellFlags2">134217728</int>
-												<string key="NSContents">Verify Local Data</string>
-												<reference key="NSSupport" ref="348654319"/>
-												<reference key="NSControlView" ref="470122373"/>
-												<int key="NSButtonFlags">-2038284033</int>
-												<int key="NSButtonFlags2">129</int>
-												<string key="NSAlternateContents"/>
-												<string key="NSKeyEquivalent"/>
-												<int key="NSPeriodicDelay">200</int>
-												<int key="NSPeriodicInterval">25</int>
-											</object>
-										</object>
 										<object class="NSButton" id="130919274">
 											<reference key="NSNextResponder" ref="476951203"/>
 											<int key="NSvFlags">265</int>
 				<string key="NSMaxSize">{1.79769e+308, 1.79769e+308}</string>
 				<string key="NSFrameAutosaveName">AddWindow</string>
 			</object>
+			<object class="NSCustomObject" id="375170565">
+				<string key="NSClassName">FileOutlineController</string>
+			</object>
 		</object>
 		<object class="IBObjectContainer" key="IBDocument.Objects">
 			<object class="NSMutableArray" key="connectionRecords">
 				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">dataSource</string>
+						<reference key="source" ref="273289336"/>
+						<reference key="destination" ref="375170565"/>
+					</object>
+					<int key="connectionID">55</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">delegate</string>
+						<reference key="source" ref="273289336"/>
+						<reference key="destination" ref="375170565"/>
+					</object>
+					<int key="connectionID">56</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">fOutline</string>
+						<reference key="source" ref="375170565"/>
+						<reference key="destination" ref="273289336"/>
+					</object>
+					<int key="connectionID">57</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">fFileController</string>
+						<reference key="source" ref="1001"/>
+						<reference key="destination" ref="375170565"/>
+					</object>
+					<int key="connectionID">58</int>
+				</object>
 			</object>
 			<object class="IBMutableOrderedSet" key="objectRecords">
 				<object class="NSArray" key="orderedObjects">
 						<reference key="object" ref="396498474"/>
 						<object class="NSMutableArray" key="children">
 							<bool key="EncodedWithXMLCoder">YES</bool>
-							<reference ref="593447562"/>
 							<reference ref="1019989494"/>
 							<reference ref="922521537"/>
 							<reference ref="168754338"/>
 							<reference ref="130919274"/>
-							<reference ref="470122373"/>
 							<reference ref="476522839"/>
 							<reference ref="856008778"/>
 							<reference ref="70491409"/>
 						<reference key="parent" ref="990609087"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">30</int>
-						<reference key="object" ref="593447562"/>
-						<reference key="parent" ref="396498474"/>
-					</object>
-					<object class="IBObjectRecord">
 						<int key="objectID">31</int>
 						<reference key="object" ref="1019989494"/>
 						<object class="NSMutableArray" key="children">
 						<reference key="parent" ref="396498474"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">35</int>
-						<reference key="object" ref="470122373"/>
-						<object class="NSMutableArray" key="children">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<reference ref="180850161"/>
-						</object>
-						<reference key="parent" ref="396498474"/>
-					</object>
-					<object class="IBObjectRecord">
 						<int key="objectID">36</int>
 						<reference key="object" ref="476522839"/>
 						<object class="NSMutableArray" key="children">
 						<reference key="parent" ref="476522839"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">49</int>
-						<reference key="object" ref="180850161"/>
-						<reference key="parent" ref="470122373"/>
-					</object>
-					<object class="IBObjectRecord">
 						<int key="objectID">50</int>
 						<reference key="object" ref="899564293"/>
 						<reference key="parent" ref="130919274"/>
 						<reference key="object" ref="52590260"/>
 						<reference key="parent" ref="1019989494"/>
 					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">54</int>
+						<reference key="object" ref="375170565"/>
+						<reference key="parent" ref="0"/>
+					</object>
 				</object>
 			</object>
 			<object class="NSMutableDictionary" key="flattenedProperties">
 				<bool key="EncodedWithXMLCoder">YES</bool>
 				<object class="NSArray" key="dict.sortedKeys">
 					<bool key="EncodedWithXMLCoder">YES</bool>
+					<string>-3.IBPluginDependency</string>
 					<string>10.IBPluginDependency</string>
 					<string>10.ImportedFromIB2</string>
 					<string>11.IBPluginDependency</string>
 					<string>3.windowTemplate.hasMinSize</string>
 					<string>3.windowTemplate.maxSize</string>
 					<string>3.windowTemplate.minSize</string>
-					<string>30.IBPluginDependency</string>
 					<string>31.IBPluginDependency</string>
 					<string>31.ImportedFromIB2</string>
 					<string>32.IBPluginDependency</string>
 					<string>33.ImportedFromIB2</string>
 					<string>34.IBPluginDependency</string>
 					<string>34.ImportedFromIB2</string>
-					<string>35.IBPluginDependency</string>
 					<string>36.IBPluginDependency</string>
 					<string>36.ImportedFromIB2</string>
 					<string>37.IBPluginDependency</string>
 					<string>47.IBPluginDependency</string>
 					<string>47.editorWindowContentRectSynchronizationRect</string>
 					<string>48.IBPluginDependency</string>
-					<string>49.IBPluginDependency</string>
 					<string>5.IBPluginDependency</string>
 					<string>50.IBPluginDependency</string>
 					<string>51.IBPluginDependency</string>
 				<object class="NSMutableArray" key="dict.values">
 					<bool key="EncodedWithXMLCoder">YES</bool>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<integer value="1"/>
 					<string>{422, 493}</string>
 					<string>{422, 300}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>{{342, 456}, {125, 63}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<integer value="1"/>
 				</object>
 			</object>
 			<nil key="sourceID"/>
-			<int key="maxID">53</int>
+			<int key="maxID">58</int>
 		</object>
 		<object class="IBClassDescriber" key="IBDocument.Classes">
 			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
 							<string>id</string>
 						</object>
 					</object>
+					<object class="NSMutableDictionary" key="actionInfosByName">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>add:</string>
+							<string>cancelAdd:</string>
+							<string>changePriority:</string>
+							<string>setDestination:</string>
+							<string>verifyLocalData:</string>
+						</object>
+						<object class="NSMutableArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<object class="IBActionInfo">
+								<string key="name">add:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">cancelAdd:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">changePriority:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">setDestination:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">verifyLocalData:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+						</object>
+					</object>
 					<object class="NSMutableDictionary" key="outlets">
 						<bool key="EncodedWithXMLCoder">YES</bool>
 						<object class="NSArray" key="dict.sortedKeys">
 							<string>NSProgressIndicator</string>
 						</object>
 					</object>
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>fDeleteCheck</string>
+							<string>fFileController</string>
+							<string>fGroupPopUp</string>
+							<string>fIconView</string>
+							<string>fLocationField</string>
+							<string>fLocationImageView</string>
+							<string>fNameField</string>
+							<string>fPriorityPopUp</string>
+							<string>fStartCheck</string>
+							<string>fStatusField</string>
+							<string>fVerifyIndicator</string>
+						</object>
+						<object class="NSMutableArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fDeleteCheck</string>
+								<string key="candidateClassName">NSButton</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fFileController</string>
+								<string key="candidateClassName">FileOutlineController</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fGroupPopUp</string>
+								<string key="candidateClassName">NSPopUpButton</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fIconView</string>
+								<string key="candidateClassName">NSImageView</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fLocationField</string>
+								<string key="candidateClassName">NSTextField</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fLocationImageView</string>
+								<string key="candidateClassName">NSImageView</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fNameField</string>
+								<string key="candidateClassName">NSTextField</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fPriorityPopUp</string>
+								<string key="candidateClassName">NSPopUpButton</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fStartCheck</string>
+								<string key="candidateClassName">NSButton</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fStatusField</string>
+								<string key="candidateClassName">NSTextField</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">fVerifyIndicator</string>
+								<string key="candidateClassName">NSProgressIndicator</string>
+							</object>
+						</object>
+					</object>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 						<string key="majorKey">IBProjectSource</string>
 						<string key="minorKey">AddWindowController.h</string>
 					</object>
 				</object>
 				<object class="IBPartialClassDescription">
+					<string key="className">FileOutlineController</string>
+					<string key="superclassName">NSObject</string>
+					<object class="NSMutableDictionary" key="actions">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>revealFile:</string>
+							<string>setCheck:</string>
+							<string>setOnlySelectedCheck:</string>
+							<string>setPriority:</string>
+						</object>
+						<object class="NSMutableArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>id</string>
+							<string>id</string>
+							<string>id</string>
+							<string>id</string>
+						</object>
+					</object>
+					<object class="NSMutableDictionary" key="actionInfosByName">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>revealFile:</string>
+							<string>setCheck:</string>
+							<string>setOnlySelectedCheck:</string>
+							<string>setPriority:</string>
+						</object>
+						<object class="NSMutableArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<object class="IBActionInfo">
+								<string key="name">revealFile:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">setCheck:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">setOnlySelectedCheck:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+							<object class="IBActionInfo">
+								<string key="name">setPriority:</string>
+								<string key="candidateClassName">id</string>
+							</object>
+						</object>
+					</object>
+					<object class="NSMutableDictionary" key="outlets">
+						<string key="NS.key.0">fOutline</string>
+						<string key="NS.object.0">FileOutlineView</string>
+					</object>
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
+						<string key="NS.key.0">fOutline</string>
+						<object class="IBToOneOutletInfo" key="NS.object.0">
+							<string key="name">fOutline</string>
+							<string key="candidateClassName">FileOutlineView</string>
+						</object>
+					</object>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">FileOutlineController.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
+					<string key="className">FileOutlineView</string>
+					<string key="superclassName">NSOutlineView</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">FileOutlineView.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
 					<string key="className">FileOutlineView</string>
 					<string key="superclassName">NSOutlineView</string>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 					</object>
 				</object>
 				<object class="IBPartialClassDescription">
+					<string key="className">NSApplication</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBFrameworkSource</string>
+						<string key="minorKey">BWToolkitFramework.framework/Headers/NSApplication+BWAdditions.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
 					<string key="className">NSBox</string>
 					<string key="superclassName">NSView</string>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 					<reference key="sourceIdentifier" ref="331901123"/>
 				</object>
 				<object class="IBPartialClassDescription">
+					<string key="className">NSView</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBFrameworkSource</string>
+						<string key="minorKey">BWToolkitFramework.framework/Headers/NSView+BWAdditions.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
 					<string key="className">NSWindow</string>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 						<string key="majorKey">IBFrameworkSource</string>
 					</object>
 				</object>
 				<object class="IBPartialClassDescription">
+					<string key="className">NSWindow</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBFrameworkSource</string>
+						<string key="minorKey">BWToolkitFramework.framework/Headers/NSWindow+BWAdditions.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
 					<string key="className">NSWindowController</string>
 					<string key="superclassName">NSResponder</string>
 					<object class="NSMutableDictionary" key="actions">
 						<string key="NS.key.0">showWindow:</string>
 						<string key="NS.object.0">id</string>
 					</object>
+					<object class="NSMutableDictionary" key="actionInfosByName">
+						<string key="NS.key.0">showWindow:</string>
+						<object class="IBActionInfo" key="NS.object.0">
+							<string key="name">showWindow:</string>
+							<string key="candidateClassName">id</string>
+						</object>
+					</object>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 						<string key="majorKey">IBFrameworkSource</string>
 						<string key="minorKey">AppKit.framework/Headers/NSWindowController.h</string>

File FileListNode.h

 
 - (NSArray *) children;
 - (TorrentFilePriority) priority;
+- (void) setPriority:(TorrentFilePriority) priority;
 - (NSSet *) priorities;
 @end

File FileListNode.m

 {
     return fPriority;
 }
+
+- (void) setPriority:(TorrentFilePriority) priority
+{
+    fPriority = priority;
+    if (fIsFolder)
+    {
+        for(FileListNode *f in fChildren)
+            [f setPriority:priority];
+    }
+}
 - (NSSet *) priorities
 {
     NSMutableSet *result = [[NSMutableSet alloc] init];
-    [result addObject:[NSNumber numberWithInt:fPriority]];
-    
     if (fIsFolder)
     {    
         for (FileListNode *child in fChildren)
-            [result addObject:[NSNumber numberWithInt:[child priority]]];
+        {
+            for(NSNumber *priority in [child priorities])
+                [result addObject:priority];
+        }
     }
-    
+    else
+        [result addObject:[NSNumber numberWithInt:fPriority]];
+
     return result;
 }
 @end

File FileOutlineController.m

 {
     [fFileList release];
     [fFilterText release];
+    [fTorrent release];
     [super dealloc];
 }
 
 
 - (void) setTorrent: (Torrent *) torrent
 {
-    fTorrent = torrent;
+    fTorrent = [torrent retain];
     [fOutline setTorrent: fTorrent];
     
     [fFileList release];
 
 - (void) setFilterText: (NSString *) text
 {
-//    if ([text isEqualToString: @""])
-//        text = nil;
-//    
-//    if ((!text && !fFilterText) || (text && fFilterText && [text isEqualToString: fFilterText]))
-//        return;
-//    
-//    [fFilterText release];
-//    fFilterText = [text retain];
-//    
-//    [fFileList release];
-//    if (!fFilterText)
-//        fFileList = [[[fTorrent file] children] retain];
-//    else
-//    {
-//        NSMutableArray * list = [NSMutableArray arrayWithCapacity: [fTorrent fileCount]];
-//        
-//        for (FileListNode * node in [fTorrent flatFileList])
-//            if ([[node name] rangeOfString: fFilterText options: NSCaseInsensitiveSearch].location != NSNotFound)
-//                [list addObject: node];
-//        
-//        fFileList = [[NSArray alloc] initWithArray: list];
-//    }
-//    
-//    [fOutline reloadData];
+    if ([text isEqualToString: @""])
+        text = nil;
+    
+    if ((!text && !fFilterText) || (text && fFilterText && [text isEqualToString: fFilterText]))
+        return;
+    
+    [fFilterText release];
+    fFilterText = [text retain];
+    
+    [fFileList release];
+    if (!fFilterText)
+        fFileList = [[[fTorrent file] children] retain];
+    else
+    {
+        NSMutableArray * list = [NSMutableArray arrayWithCapacity: [[fTorrent flatFileList] count]];
+        
+        for (FileListNode * node in [fTorrent flatFileList])
+            if ([[node name] rangeOfString: fFilterText options: NSCaseInsensitiveSearch].location != NSNotFound)
+                [list addObject: node];
+        
+        fFileList = [[NSArray alloc] initWithArray: list];
+    }
+    
+    [fOutline reloadData];
 }
 
 - (void) reloadData
 
 - (id) outlineView: (NSOutlineView *) outlineView objectValueForTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
 {
-//    if ([[tableColumn identifier] isEqualToString: @"Check"])
-//        return [NSNumber numberWithInteger: [fTorrent checkForFiles: [(FileListNode *)item indexes]]];
-//    else
+    if ([[tableColumn identifier] isEqualToString: @"Check"])
+    {
+        NSSet *priorities = [(FileListNode *)item priorities];
+        int numOff=0;
+        NSNumber *off = [NSNumber numberWithInt:NITorrentFilePriorityOff];
+        for(NSNumber *priority in priorities)
+        {
+            if ([off isEqualToNumber:priority])
+                numOff++;
+        }
+        
+        if (numOff == 0)
+            return [NSNumber numberWithInteger: NSOnState];
+        
+        if (numOff == [priorities count])
+            return [NSNumber numberWithInteger: NSOffState];
+        
+        return [NSNumber numberWithInteger: NSMixedState];
+    }
+    else
         return item;
 }
 
 - (void) outlineView: (NSOutlineView *) outlineView willDisplayCell: (id) cell
             forTableColumn: (NSTableColumn *) tableColumn item: (id) item
 {
-//    NSString * identifier = [tableColumn identifier];
-//    if ([identifier isEqualToString: @"Check"])
-//        [cell setEnabled: [fTorrent canChangeDownloadCheckForFiles: [(FileListNode *)item indexes]]];
-//    else if ([identifier isEqualToString: @"Priority"])
-//    {
-//        [cell setRepresentedObject: item];
-//        
-//        NSInteger hoveredRow = [fOutline hoveredRow];
-//        [(FilePriorityCell *)cell setHovered: hoveredRow != -1 && hoveredRow == [fOutline rowForItem: item]];
-//    }
-//    else;
+    NSString * identifier = [tableColumn identifier];
+    if ([identifier isEqualToString: @"Check"])
+        [cell setEnabled: YES];
+    else if ([identifier isEqualToString: @"Priority"])
+    {
+        [cell setRepresentedObject: item];
+        
+        NSInteger hoveredRow = [fOutline hoveredRow];
+        [(FilePriorityCell *)cell setHovered: hoveredRow != -1 && hoveredRow == [fOutline rowForItem: item]];
+    }
+    else;
 }
 
 - (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object
-        forTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
+      forTableColumn: (NSTableColumn *) tableColumn byItem: (id) item
 {
-//    NSString * identifier = [tableColumn identifier];
-//    if ([identifier isEqualToString: @"Check"])
-//    {
-//        NSIndexSet * indexSet;
-//        if (([NSApp isOnSnowLeopardOrBetter] ? [NSEvent modifierFlags] : [[NSApp currentEvent] modifierFlags]) & NSAlternateKeyMask)
-//            indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTorrent fileCount])];
-//        else
-//            indexSet = [(FileListNode *)item indexes];
-//        
-//        [fTorrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState forIndexes: indexSet];
-//        [fOutline reloadData];
-//        
-//        [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil];
-//    }
+    NSString * identifier = [tableColumn identifier];
+    if ([identifier isEqualToString: @"Check"])
+    {
+        TorrentFilePriority priority = [object intValue] == NSOffState ? NITorrentFilePriorityOff : NITorrentFilePriorityNormal;
+        [(FileListNode *) item setPriority:priority];
+        [fOutline reloadData];
+    }
 }
 
 - (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item
 - (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect
         tableColumn: (NSTableColumn *) tableColumn item: (id) item mouseLocation: (NSPoint) mouseLocation
 {
-//    NSString * ident = [tableColumn identifier];
-//    if ([ident isEqualToString: @"Name"])
-//        return [fTorrent fileLocation: item];
-//    else if ([ident isEqualToString: @"Check"])
-//    {
-//        switch ([cell state])
-//        {
-//            case NSOffState:
-//                return NSLocalizedString(@"Don't Download", "files tab -> tooltip");
-//            case NSOnState:
-//                return NSLocalizedString(@"Download", "files tab -> tooltip");
-//            case NSMixedState:
-//                return NSLocalizedString(@"Download Some", "files tab -> tooltip");
-//        }
-//    }
-//    else if ([ident isEqualToString: @"Priority"])
-//    {
-//        NSSet * priorities = [fTorrent filePrioritiesForIndexes: [(FileListNode *)item indexes]];
-//        switch ([priorities count])
-//        {
-//            case 0:
-//                return NSLocalizedString(@"Priority Not Available", "files tab -> tooltip");
-//            case 1:
-//                switch ([[priorities anyObject] intValue])
-//                {
-//                    case TR_PRI_LOW:
-//                        return NSLocalizedString(@"Low Priority", "files tab -> tooltip");
-//                    case TR_PRI_HIGH:
-//                        return NSLocalizedString(@"High Priority", "files tab -> tooltip");
-//                    case TR_PRI_NORMAL:
-//                        return NSLocalizedString(@"Normal Priority", "files tab -> tooltip");
-//                }
-//                break;
-//            default:
-//                return NSLocalizedString(@"Multiple Priorities", "files tab -> tooltip");
-//        }
-//    }
-//    else;
+    NSString * ident = [tableColumn identifier];
+    if ([ident isEqualToString: @"Name"])
+        return [item path];
+    else if ([ident isEqualToString: @"Check"])
+    {
+        switch ([cell state])
+        {
+            case NSOffState:
+                return NSLocalizedString(@"Don't Download", "files tab -> tooltip");
+            case NSOnState:
+                return NSLocalizedString(@"Download", "files tab -> tooltip");
+            case NSMixedState:
+                return NSLocalizedString(@"Download Some", "files tab -> tooltip");
+        }
+    }
+    else if ([ident isEqualToString: @"Priority"])
+    {
+        NSSet * priorities = [(FileListNode *)item priorities];
+        switch ([priorities count])
+        {
+            case 0:
+                return NSLocalizedString(@"Priority Not Available", "files tab -> tooltip");
+            case 1:
+                switch ([[priorities anyObject] intValue])
+                {
+                    case NITorrentFilePriorityLow:
+                        return NSLocalizedString(@"Low Priority", "files tab -> tooltip");
+                    case NITorrentFilePriorityHigh:
+                        return NSLocalizedString(@"High Priority", "files tab -> tooltip");
+                    case NITorrentFilePriorityNormal:
+                        return NSLocalizedString(@"Normal Priority", "files tab -> tooltip");
+                }
+                break;
+            default:
+                return NSLocalizedString(@"Multiple Priorities", "files tab -> tooltip");
+        }
+    }
+    else;
     
     return nil;
 }
         return [outlineView rowHeight];
 }
 
-- (void) setCheck: (id) sender
-{
-//    NSInteger state = [sender tag] == FILE_UNCHECK_TAG ? NSOffState : NSOnState;
-//    
-//    NSIndexSet * indexSet = [fOutline selectedRowIndexes];
-//    NSMutableIndexSet * itemIndexes = [NSMutableIndexSet indexSet];
-//    for (NSInteger i = [indexSet firstIndex]; i != NSNotFound; i = [indexSet indexGreaterThanIndex: i])
-//        [itemIndexes addIndexes: [[fOutline itemAtRow: i] indexes]];
-//    
-//    [fTorrent setFileCheckState: state forIndexes: itemIndexes];
-//    [fOutline reloadData];
-}
 
 - (void) setOnlySelectedCheck: (id) sender
 {
 
 - (void) revealFile: (id) sender
 {
-//    NSIndexSet * indexes = [fOutline selectedRowIndexes];
-//    if ([NSApp isOnSnowLeopardOrBetter])
-//    {
+//        NSIndexSet * indexes = [fOutline selectedRowIndexes];
 //        NSMutableArray * paths = [NSMutableArray arrayWithCapacity: [indexes count]];
 //        for (NSUInteger i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])
 //        {
 //        
 //        if ([paths count])
 //            [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: paths];
-//    }
-//    else
-//    {
-//        for (NSUInteger i = [indexes firstIndex]; i != NSNotFound; i = [indexes indexGreaterThanIndex: i])
-//        {
-//            NSString * path = [fTorrent fileLocation: [fOutline itemAtRow: i]];
-//            if (path)
-//                [[NSWorkspace sharedWorkspace] selectFile: path inFileViewerRootedAtPath: nil];
-//        }
-//    }
 }
 
 #warning make real view controller (Leopard-only) so that Command-R will work
 //        
 //        //determine which priorities are checked
 //        NSIndexSet * indexSet = [fOutline selectedRowIndexes];
-//        tr_priority_t priority;
+//
 //        switch ([menuItem tag])
 //        {
 //            case FILE_PRIORITY_HIGH_TAG:
-//                priority = TR_PRI_HIGH;
+//                priority = NITorrentFilePriorityHigh;
 //                break;
 //            case FILE_PRIORITY_NORMAL_TAG:
-//                priority = TR_PRI_NORMAL;
+//                priority = NITorrentFilePriorityNormal;
 //                break;
 //            case FILE_PRIORITY_LOW_TAG:
-//                priority = TR_PRI_LOW;
+//                priority = NITorrentFilePriorityLow;
 //                break;
 //        }
 //        
 //        [menuItem setState: current ? NSOnState : NSOffState];
 //        return canChange;
 //    }
-//    
+    
     return YES;
 }
 

File FilePriorityCell.m

     }
     
     FileOutlineView * controlView = (FileOutlineView *)[self controlView];
-    Torrent * torrent = [controlView torrent];
-        //    [torrent setFilePriority: priority forIndexes: [(FileListNode *)[self representedObject] indexes]];
+    [(FileListNode *)[self representedObject] setPriority:priority];
     [controlView reloadData];
 }
 
 
 - (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
 {
-    //Torrent * torrent = [(FileOutlineView *)controlView torrent];
-//    FileListNode * node = [self representedObject];
-//    NSSet * priorities = [torrent filePrioritiesForIndexes: [node indexes]];
-//    
-//    const NSUInteger count = [priorities count];
-//    if (fHoverRow && count > 0)
-//    {
-//        [super setSelected: [priorities containsObject: [NSNumber numberWithInteger: TR_PRI_LOW]] forSegment: 0];
-//        [super setSelected: [priorities containsObject: [NSNumber numberWithInteger: TR_PRI_NORMAL]] forSegment: 1];
-//        [super setSelected: [priorities containsObject: [NSNumber numberWithInteger: TR_PRI_HIGH]] forSegment: 2];
-//        
-//        [super drawWithFrame: cellFrame inView: controlView];
-//    }
-//    else
-//    {
-//        NSImage * image;
-//        if (count == 0)
-//            image = [NSImage imageNamed: @"PriorityNone.png"];
-//        else if (count > 1)
-//            image = [NSImage imageNamed: @"PriorityMixed.png"];
-//        else
-//        {
-//            switch ([[priorities anyObject] integerValue])
-//            {
-//                case NITorrentPriorityNormal:
-//                    image = [NSImage imageNamed: @"PriorityNormal.png"];
-//                    break;
-//                case NITorrentPriorityLow:
-//                    image = [NSImage imageNamed: @"PriorityLow.png"];
-//                    break;
-//                case NITorrentPriorityHigh:
-//                    image = [NSImage imageNamed: @"PriorityHigh.png"];
-//                    break;
-//            }
-//        }
-//        
-//        NSSize imageSize = [image size];
-//        NSRect imageRect = NSMakeRect(NSMidX(cellFrame) - imageSize.width * 0.5, NSMidY(cellFrame) - imageSize.height * 0.5,
-//                                        imageSize.width, imageSize.height);
-//        
-//        [image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0
-//            respectFlipped: YES hints: nil];
-//    }
+    FileListNode * node = [self representedObject];
+    NSSet * priorities = [node priorities];
+    
+    const NSUInteger count = [priorities count];
+    if (fHoverRow && count > 0)
+    {
+        [super setSelected: [priorities containsObject: [NSNumber numberWithInteger: NITorrentFilePriorityLow]] forSegment: 0];
+        [super setSelected: [priorities containsObject: [NSNumber numberWithInteger: NITorrentFilePriorityNormal]] forSegment: 1];
+        [super setSelected: [priorities containsObject: [NSNumber numberWithInteger: NITorrentFilePriorityHigh]] forSegment: 2];
+        
+        [super drawWithFrame: cellFrame inView: controlView];
+    }
+    else
+    {
+        NSImage * image;
+        if (count == 0)
+            image = [NSImage imageNamed: @"PriorityNone.png"];
+        else if (count > 1)
+            image = [NSImage imageNamed: @"PriorityMixed.png"];
+        else
+        {
+            switch ([[priorities anyObject] integerValue])
+            {
+                case NITorrentPriorityNormal:
+                    image = [NSImage imageNamed: @"PriorityNormal.png"];
+                    break;
+                case NITorrentPriorityLow:
+                    image = [NSImage imageNamed: @"PriorityLow.png"];
+                    break;
+                case NITorrentPriorityHigh:
+                    image = [NSImage imageNamed: @"PriorityHigh.png"];
+                    break;
+                default:
+                    image = [NSImage imageNamed: @"PriorityNone.png"];
+            }
+        }
+        
+        NSSize imageSize = [image size];
+        NSRect imageRect = NSMakeRect(NSMidX(cellFrame) - imageSize.width * 0.5, NSMidY(cellFrame) - imageSize.height * 0.5,
+                                        imageSize.width, imageSize.height);
+        
+        [image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0
+            respectFlipped: YES hints: nil];
+    }
 }
 
 @end

File Nativa.xcodeproj/project.pbxproj

 		816D20C911B5804000DE18F8 /* FileOutlineController.m in Sources */ = {isa = PBXBuildFile; fileRef = 816D20C311B5804000DE18F8 /* FileOutlineController.m */; };
 		816D20CA11B5804000DE18F8 /* FileOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 816D20C511B5804000DE18F8 /* FileOutlineView.m */; };
 		816D20CB11B5804000DE18F8 /* FilePriorityCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 816D20C711B5804000DE18F8 /* FilePriorityCell.m */; };
+		81712CD6120C49F300C147D6 /* PriorityControlHigh.png in Resources */ = {isa = PBXBuildFile; fileRef = 81712CD3120C49F300C147D6 /* PriorityControlHigh.png */; };
+		81712CD7120C49F300C147D6 /* PriorityControlLow.png in Resources */ = {isa = PBXBuildFile; fileRef = 81712CD4120C49F300C147D6 /* PriorityControlLow.png */; };
+		81712CD8120C49F300C147D6 /* PriorityControlNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = 81712CD5120C49F300C147D6 /* PriorityControlNormal.png */; };
 		81747F301159153A00192413 /* YingYangTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = 81747F2F1159153A00192413 /* YingYangTemplate.png */; };
 		817C3D371159851000DC97DA /* DiskSpace.png in Resources */ = {isa = PBXBuildFile; fileRef = 817C3D361159851000DC97DA /* DiskSpace.png */; };
 		8193C64211619206003DC173 /* EMKeychainItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 8193C64111619206003DC173 /* EMKeychainItem.m */; };
 		81941F58117A158D00B55647 /* GroupRules.xib in Resources */ = {isa = PBXBuildFile; fileRef = 81941F57117A158D00B55647 /* GroupRules.xib */; };
+		81963564120C64FB00ACE1EE /* PriorityMixed.png in Resources */ = {isa = PBXBuildFile; fileRef = 81963563120C64FB00ACE1EE /* PriorityMixed.png */; };
 		819D3BEA1110CD5200F7007C /* DownloadsController.m in Sources */ = {isa = PBXBuildFile; fileRef = 819D3BE91110CD5200F7007C /* DownloadsController.m */; };
 		819D3E0C1110EE6E00F7007C /* Controller.m in Sources */ = {isa = PBXBuildFile; fileRef = 819D3E0B1110EE6E00F7007C /* Controller.m */; };
 		81B73ABA1113993800A11521 /* UpArrowTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = 81B73AB91113993800A11521 /* UpArrowTemplate.png */; };
 		816D20C511B5804000DE18F8 /* FileOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileOutlineView.m; sourceTree = "<group>"; };
 		816D20C611B5804000DE18F8 /* FilePriorityCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FilePriorityCell.h; sourceTree = "<group>"; };
 		816D20C711B5804000DE18F8 /* FilePriorityCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FilePriorityCell.m; sourceTree = "<group>"; };
+		81712CD3120C49F300C147D6 /* PriorityControlHigh.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PriorityControlHigh.png; sourceTree = "<group>"; };
+		81712CD4120C49F300C147D6 /* PriorityControlLow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PriorityControlLow.png; sourceTree = "<group>"; };
+		81712CD5120C49F300C147D6 /* PriorityControlNormal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PriorityControlNormal.png; sourceTree = "<group>"; };
 		81720931111666BD0018555A /* NativaConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativaConstants.h; sourceTree = "<group>"; };
 		81747F2F1159153A00192413 /* YingYangTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = YingYangTemplate.png; sourceTree = "<group>"; };
 		817C3D361159851000DC97DA /* DiskSpace.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = DiskSpace.png; sourceTree = "<group>"; };
 		8193C64011619206003DC173 /* EMKeychainItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMKeychainItem.h; sourceTree = "<group>"; };
 		8193C64111619206003DC173 /* EMKeychainItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMKeychainItem.m; sourceTree = "<group>"; };
 		81941F55117A157700B55647 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/GroupRules.xib; sourceTree = "<group>"; };
+		81963563120C64FB00ACE1EE /* PriorityMixed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PriorityMixed.png; sourceTree = "<group>"; };
 		819D3BE81110CD5200F7007C /* DownloadsController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DownloadsController.h; sourceTree = "<group>"; };
 		819D3BE91110CD5200F7007C /* DownloadsController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DownloadsController.m; sourceTree = "<group>"; };
 		819D3E0A1110EE6E00F7007C /* Controller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Controller.h; sourceTree = "<group>"; };
 		811EA5D11111FAD1001D16D0 /* images */ = {
 			isa = PBXGroup;
 			children = (
+				81963563120C64FB00ACE1EE /* PriorityMixed.png */,
+				81712CD3120C49F300C147D6 /* PriorityControlHigh.png */,
+				81712CD4120C49F300C147D6 /* PriorityControlLow.png */,
+				81712CD5120C49F300C147D6 /* PriorityControlNormal.png */,
 				81F660C611E652C200A810CD /* Bandwidth.png */,
 				81CF0FE4118150B200B44A0E /* StopHover.png */,
 				81CF0FE5118150B200B44A0E /* StopOff.png */,
 				816D209911B4AE3300DE18F8 /* AddWindow.xib in Resources */,
 				81F660C711E652C200A810CD /* Bandwidth.png in Resources */,
 				8140AAA411E91FAC002D1031 /* SetupAssistant.xib in Resources */,
+				81712CD6120C49F300C147D6 /* PriorityControlHigh.png in Resources */,
+				81712CD7120C49F300C147D6 /* PriorityControlLow.png in Resources */,
+				81712CD8120C49F300C147D6 /* PriorityControlNormal.png in Resources */,
+				81963564120C64FB00ACE1EE /* PriorityMixed.png in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};

File images/PriorityControlHigh.png

Added
New image

File images/PriorityControlLow.png

Added
New image

File images/PriorityControlNormal.png

Added
New image

File images/PriorityMixed.png

Added
New image