]> granicus.if.org Git - transmission/commitdiff
add in placeholder code so that AddMagnetWindow can be localized with a strings file...
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 8 Sep 2012 03:48:12 +0000 (03:48 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 8 Sep 2012 03:48:12 +0000 (03:48 +0000)
macosx/AddMagnetWindowController.h
macosx/AddMagnetWindowController.m
macosx/en.lproj/AddMagnetWindow.xib

index eee77568a587ad412edffd02c1deb796183b25ba..08e2695c3441b3ea1318d069d3406e5b57997b93 100644 (file)
     IBOutlet NSButton * fStartCheck;
     IBOutlet NSPopUpButton * fGroupPopUp, * fPriorityPopUp;
     
+    //remove these when switching to auto layout
+    IBOutlet NSTextField * fMagnetLinkLabel;
+    IBOutlet NSTextField * fDownloadToLabel, * fGroupLabel, * fPriorityLabel;
+    IBOutlet NSButton * fChangeDestinationButton;
+    IBOutlet NSBox * fDownloadToBox;
+    IBOutlet NSButton * fAddButton, * fCancelButton;
+    
     Controller * fController;
     
     Torrent * fTorrent;
index 14eb367ff5541b22dc252f0eeb88c4eae41ed0d4..f1408b72879f363797c2b2a7d1c13efe43ddd577 100644 (file)
         [fLocationField setStringValue: @""];
         [fLocationImageView setImage: nil];
     }
+    
+    #warning enable after 2.7
+    /*
+    #warning when 10.7-only, switch to auto layout
+    [fMagnetLinkLabel sizeToFit];
+    
+    const CGFloat downloadToLabelOldWidth = [fDownloadToLabel frame].size.width;
+    [fDownloadToLabel sizeToFit];
+    const CGFloat changeDestOldWidth = [fChangeDestinationButton frame].size.width;
+    [fChangeDestinationButton sizeToFit];
+    NSRect changeDestFrame = [fChangeDestinationButton frame];
+    changeDestFrame.origin.x -= changeDestFrame.size.width - changeDestOldWidth;
+    [fChangeDestinationButton setFrame: changeDestFrame];
+    
+    NSRect downloadToBoxFrame = [fDownloadToBox frame];
+    const CGFloat downloadToBoxSizeDiff = ([fDownloadToLabel frame].size.width - downloadToLabelOldWidth) + (changeDestFrame.size.width - changeDestOldWidth);
+    downloadToBoxFrame.size.width -= downloadToBoxSizeDiff;
+    downloadToBoxFrame.origin.x -= downloadToLabelOldWidth - [fDownloadToLabel frame].size.width;
+    [fDownloadToBox setFrame: downloadToBoxFrame];
+    
+    NSRect groupPopUpFrame = [fGroupPopUp frame];
+    NSRect priorityPopUpFrame = [fPriorityPopUp frame];
+    const CGFloat popUpOffset = groupPopUpFrame.origin.x - NSMaxX([fGroupLabel frame]);
+    [fGroupLabel sizeToFit];
+    [fPriorityLabel sizeToFit];
+    NSRect groupLabelFrame = [fGroupLabel frame];
+    NSRect priorityLabelFrame = [fPriorityLabel frame];
+    //first bring them both to the left edge
+    groupLabelFrame.origin.x = MIN(groupLabelFrame.origin.x, priorityLabelFrame.origin.x);
+    priorityLabelFrame.origin.x = MIN(groupLabelFrame.origin.x, priorityLabelFrame.origin.x);
+    //then align on the right
+    const CGFloat labelWidth = MAX(groupLabelFrame.size.width, priorityLabelFrame.size.width);
+    groupLabelFrame.origin.x += labelWidth - groupLabelFrame.size.width;
+    priorityLabelFrame.origin.x += labelWidth - priorityLabelFrame.size.width;
+    groupPopUpFrame.origin.x = NSMaxX(groupLabelFrame) + popUpOffset;
+    priorityPopUpFrame.origin.x = NSMaxX(priorityLabelFrame) + popUpOffset;
+    [fGroupLabel setFrame: groupLabelFrame];
+    [fGroupPopUp setFrame: groupPopUpFrame];
+    [fPriorityLabel setFrame: priorityLabelFrame];
+    [fPriorityPopUp setFrame: priorityPopUpFrame];
+    
+    const CGFloat minButtonWidth = 82.0;
+    const CGFloat oldAddButtonWidth = [fAddButton bounds].size.width;
+    const CGFloat oldCancelButtonWidth = [fCancelButton bounds].size.width;
+    #warning add "extra" width that sizeToFit loses
+    [fAddButton sizeToFit];
+    [fCancelButton sizeToFit];
+    NSRect addButtonFrame = [fAddButton frame];
+    NSRect cancelButtonFrame = [fCancelButton frame];
+    CGFloat buttonWidth = MAX(addButtonFrame.size.width, cancelButtonFrame.size.width);
+    buttonWidth = MAX(buttonWidth, minButtonWidth);
+    addButtonFrame.size.width = buttonWidth;
+    cancelButtonFrame.size.width = buttonWidth;
+    const CGFloat addButtonWidthIncrease = buttonWidth - oldAddButtonWidth;
+    addButtonFrame.origin.x -= addButtonWidthIncrease;
+    cancelButtonFrame.origin.x -= addButtonWidthIncrease + (buttonWidth - oldCancelButtonWidth);
+    [fAddButton setFrame: addButtonFrame];
+    [fCancelButton setFrame: cancelButtonFrame];
+    
+    [fStartCheck sizeToFit];
+     */
 }
 
 - (void) windowDidLoad
index c12043d8e70e53ba60e6ee83ed15947ff66a1e8d..6f517a0659247500fb646693437181a9397fc5c1 100644 (file)
@@ -2,29 +2,29 @@
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
        <data>
                <int key="IBDocument.SystemTarget">1060</int>
-               <string key="IBDocument.SystemVersion">11C74</string>
-               <string key="IBDocument.InterfaceBuilderVersion">1938</string>
-               <string key="IBDocument.AppKitVersion">1138.23</string>
-               <string key="IBDocument.HIToolboxVersion">567.00</string>
+               <string key="IBDocument.SystemVersion">12B19</string>
+               <string key="IBDocument.InterfaceBuilderVersion">2549</string>
+               <string key="IBDocument.AppKitVersion">1187</string>
+               <string key="IBDocument.HIToolboxVersion">624.00</string>
                <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
                        <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
-                       <string key="NS.object.0">1938</string>
+                       <string key="NS.object.0">2549</string>
                </object>
                <array key="IBDocument.IntegratedClassDependencies">
-                       <string>NSPopUpButton</string>
+                       <string>NSBox</string>
                        <string>NSButton</string>
-                       <string>NSMenu</string>
                        <string>NSButtonCell</string>
-                       <string>NSImageView</string>
-                       <string>NSTextFieldCell</string>
-                       <string>NSBox</string>
+                       <string>NSCustomObject</string>
                        <string>NSImageCell</string>
+                       <string>NSImageView</string>
+                       <string>NSMenu</string>
                        <string>NSMenuItem</string>
-                       <string>NSCustomObject</string>
+                       <string>NSPopUpButton</string>
+                       <string>NSPopUpButtonCell</string>
+                       <string>NSTextField</string>
+                       <string>NSTextFieldCell</string>
                        <string>NSView</string>
                        <string>NSWindowTemplate</string>
-                       <string>NSTextField</string>
-                       <string>NSPopUpButtonCell</string>
                </array>
                <array key="IBDocument.PluginDependencies">
                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -75,7 +75,7 @@
                                                        <reference key="NSNextKeyView" ref="368126870"/>
                                                        <bool key="NSEnabled">YES</bool>
                                                        <object class="NSImageCell" key="NSCell" id="376748491">
-                                                               <int key="NSCellFlags">130560</int>
+                                                               <int key="NSCellFlags">134217728</int>
                                                                <int key="NSCellFlags2">33554432</int>
                                                                <object class="NSCustomResource" key="NSContents">
                                                                        <string key="NSClassName">NSImage</string>
@@ -86,6 +86,7 @@
                                                                <int key="NSStyle">0</int>
                                                                <bool key="NSAnimates">NO</bool>
                                                        </object>
+                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                        <bool key="NSEditable">YES</bool>
                                                </object>
                                                <object class="NSTextField" id="471778487">
@@ -97,7 +98,7 @@
                                                        <reference key="NSNextKeyView" ref="270024268"/>
                                                        <bool key="NSEnabled">YES</bool>
                                                        <object class="NSTextFieldCell" key="NSCell" id="814218719">
-                                                               <int key="NSCellFlags">67239488</int>
+                                                               <int key="NSCellFlags">67108928</int>
                                                                <int key="NSCellFlags2">272632320</int>
                                                                <string key="NSContents">File Name</string>
                                                                <object class="NSFont" key="NSSupport">
                                                                        </object>
                                                                </object>
                                                        </object>
+                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                </object>
                                                <object class="NSButton" id="999003967">
                                                        <reference key="NSNextResponder" ref="1006"/>
                                                        <reference key="NSNextKeyView" ref="533609783"/>
                                                        <bool key="NSEnabled">YES</bool>
                                                        <object class="NSButtonCell" key="NSCell" id="282889060">
-                                                               <int key="NSCellFlags">-2080244224</int>
+                                                               <int key="NSCellFlags">-2080374784</int>
                                                                <int key="NSCellFlags2">0</int>
                                                                <string key="NSContents">Start when added</string>
                                                                <object class="NSFont" key="NSSupport" id="728563564">
                                                                        <int key="NSfFlags">1044</int>
                                                                </object>
                                                                <reference key="NSControlView" ref="999003967"/>
-                                                               <int key="NSButtonFlags">1211912703</int>
+                                                               <int key="NSButtonFlags">1211912448</int>
                                                                <int key="NSButtonFlags2">2</int>
+                                                               <object class="NSCustomResource" key="NSNormalImage">
+                                                                       <string key="NSClassName">NSImage</string>
+                                                                       <string key="NSResourceName">NSSwitch</string>
+                                                               </object>
                                                                <object class="NSButtonImageSource" key="NSAlternateImage">
                                                                        <string key="NSImageName">NSSwitch</string>
                                                                </object>
                                                                <int key="NSPeriodicDelay">200</int>
                                                                <int key="NSPeriodicInterval">25</int>
                                                        </object>
+                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                </object>
                                                <object class="NSButton" id="636183414">
                                                        <reference key="NSNextResponder" ref="1006"/>
                                                        <int key="NSvFlags">289</int>
-                                                       <string key="NSFrame">{{306, 12}, {80, 32}}</string>
+                                                       <string key="NSFrame">{{304, 12}, {82, 32}}</string>
                                                        <reference key="NSSuperview" ref="1006"/>
                                                        <reference key="NSWindow"/>
-                                                       <reference key="NSNextKeyView"/>
                                                        <bool key="NSEnabled">YES</bool>
                                                        <object class="NSButtonCell" key="NSCell" id="772980466">
-                                                               <int key="NSCellFlags">67239424</int>
+                                                               <int key="NSCellFlags">67108864</int>
                                                                <int key="NSCellFlags2">134217728</int>
                                                                <string key="NSContents">Add</string>
                                                                <object class="NSFont" key="NSSupport" id="636816778">
                                                                        <int key="NSfFlags">16</int>
                                                                </object>
                                                                <reference key="NSControlView" ref="636183414"/>
-                                                               <int key="NSButtonFlags">-2038284033</int>
+                                                               <int key="NSButtonFlags">-2038284288</int>
                                                                <int key="NSButtonFlags2">1</int>
                                                                <reference key="NSAlternateImage" ref="636816778"/>
                                                                <string key="NSAlternateContents"/>
                                                                <int key="NSPeriodicDelay">200</int>
                                                                <int key="NSPeriodicInterval">25</int>
                                                        </object>
+                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                </object>
                                                <object class="NSButton" id="533609783">
                                                        <reference key="NSNextResponder" ref="1006"/>
                                                        <int key="NSvFlags">289</int>
-                                                       <string key="NSFrame">{{224, 12}, {82, 32}}</string>
+                                                       <string key="NSFrame">{{222, 12}, {82, 32}}</string>
                                                        <reference key="NSSuperview" ref="1006"/>
                                                        <reference key="NSWindow"/>
                                                        <reference key="NSNextKeyView" ref="636183414"/>
                                                        <bool key="NSEnabled">YES</bool>
                                                        <object class="NSButtonCell" key="NSCell" id="340651593">
-                                                               <int key="NSCellFlags">67239424</int>
+                                                               <int key="NSCellFlags">67108864</int>
                                                                <int key="NSCellFlags2">134217728</int>
                                                                <string key="NSContents">Cancel</string>
                                                                <reference key="NSSupport" ref="728563564"/>
                                                                <reference key="NSControlView" ref="533609783"/>
-                                                               <int key="NSButtonFlags">-2038284033</int>
+                                                               <int key="NSButtonFlags">-2038284288</int>
                                                                <int key="NSButtonFlags2">1</int>
                                                                <reference key="NSAlternateImage" ref="728563564"/>
                                                                <string key="NSAlternateContents"/>
                                                                <int key="NSPeriodicDelay">200</int>
                                                                <int key="NSPeriodicInterval">25</int>
                                                        </object>
+                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                </object>
                                                <object class="NSTextField" id="368126870">
                                                        <reference key="NSNextResponder" ref="1006"/>
                                                        <reference key="NSNextKeyView" ref="471778487"/>
                                                        <bool key="NSEnabled">YES</bool>
                                                        <object class="NSTextFieldCell" key="NSCell" id="670793942">
-                                                               <int key="NSCellFlags">68288064</int>
+                                                               <int key="NSCellFlags">68157504</int>
                                                                <int key="NSCellFlags2">272630784</int>
                                                                <string key="NSContents">Magnet Link</string>
                                                                <object class="NSFont" key="NSSupport">
                                                                <reference key="NSBackgroundColor" ref="729622418"/>
                                                                <reference key="NSTextColor" ref="932603584"/>
                                                        </object>
+                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                </object>
                                                <object class="NSBox" id="270024268">
                                                        <reference key="NSNextResponder" ref="1006"/>
                                                                                        <reference key="NSNextKeyView" ref="485847244"/>
                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                        <object class="NSPopUpButtonCell" key="NSCell" id="693599709">
-                                                                                               <int key="NSCellFlags">-2076049856</int>
+                                                                                               <int key="NSCellFlags">-2076180416</int>
                                                                                                <int key="NSCellFlags2">2048</int>
                                                                                                <reference key="NSSupport" ref="728563564"/>
                                                                                                <reference key="NSControlView" ref="711151157"/>
-                                                                                               <int key="NSButtonFlags">109199615</int>
+                                                                                               <int key="NSButtonFlags">109199360</int>
                                                                                                <int key="NSButtonFlags2">1</int>
                                                                                                <string key="NSAlternateContents"/>
                                                                                                <string key="NSKeyEquivalent"/>
                                                                                                <bool key="NSAltersState">YES</bool>
                                                                                                <int key="NSArrowPosition">2</int>
                                                                                        </object>
+                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                </object>
                                                                                <object class="NSButton" id="1065995789">
                                                                                        <reference key="NSNextResponder" ref="638974187"/>
                                                                                        <reference key="NSNextKeyView" ref="224369214"/>
                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                        <object class="NSButtonCell" key="NSCell" id="1009241144">
-                                                                                               <int key="NSCellFlags">67239424</int>
+                                                                                               <int key="NSCellFlags">67108864</int>
                                                                                                <int key="NSCellFlags2">134348800</int>
                                                                                                <string key="NSContents">Change…</string>
                                                                                                <object class="NSFont" key="NSSupport" id="26">
                                                                                                        <int key="NSfFlags">3100</int>
                                                                                                </object>
                                                                                                <reference key="NSControlView" ref="1065995789"/>
-                                                                                               <int key="NSButtonFlags">-2038284033</int>
+                                                                                               <int key="NSButtonFlags">-2038284288</int>
                                                                                                <int key="NSButtonFlags2">1</int>
                                                                                                <object class="NSFont" key="NSAlternateImage">
                                                                                                        <string key="NSName">LucidaGrande</string>
                                                                                                <int key="NSPeriodicDelay">200</int>
                                                                                                <int key="NSPeriodicInterval">25</int>
                                                                                        </object>
+                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                </object>
                                                                                <object class="NSTextField" id="1059202456">
                                                                                        <reference key="NSNextResponder" ref="638974187"/>
                                                                                        <reference key="NSNextKeyView" ref="406479853"/>
                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                        <object class="NSTextFieldCell" key="NSCell" id="974538373">
-                                                                                               <int key="NSCellFlags">67239424</int>
+                                                                                               <int key="NSCellFlags">67108864</int>
                                                                                                <int key="NSCellFlags2">272629760</int>
                                                                                                <string key="NSContents">Download to:</string>
                                                                                                <reference key="NSSupport" ref="728563564"/>
                                                                                                <reference key="NSBackgroundColor" ref="729622418"/>
                                                                                                <reference key="NSTextColor" ref="932603584"/>
                                                                                        </object>
+                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                </object>
                                                                                <object class="NSTextField" id="485847244">
                                                                                        <reference key="NSNextResponder" ref="638974187"/>
                                                                                        <reference key="NSNextKeyView" ref="1049508202"/>
                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                        <object class="NSTextFieldCell" key="NSCell" id="387612783">
-                                                                                               <int key="NSCellFlags">67239424</int>
+                                                                                               <int key="NSCellFlags">67108864</int>
                                                                                                <int key="NSCellFlags2">272629760</int>
                                                                                                <string key="NSContents">Priority:</string>
                                                                                                <reference key="NSSupport" ref="728563564"/>
                                                                                                <reference key="NSBackgroundColor" ref="729622418"/>
                                                                                                <reference key="NSTextColor" ref="932603584"/>
                                                                                        </object>
+                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                </object>
                                                                                <object class="NSPopUpButton" id="1049508202">
                                                                                        <reference key="NSNextResponder" ref="638974187"/>
                                                                                        <reference key="NSNextKeyView" ref="999003967"/>
                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                        <object class="NSPopUpButtonCell" key="NSCell" id="664513336">
-                                                                                               <int key="NSCellFlags">-2076049856</int>
+                                                                                               <int key="NSCellFlags">-2076180416</int>
                                                                                                <int key="NSCellFlags2">2048</int>
                                                                                                <reference key="NSSupport" ref="728563564"/>
                                                                                                <reference key="NSControlView" ref="1049508202"/>
-                                                                                               <int key="NSButtonFlags">109199615</int>
+                                                                                               <int key="NSButtonFlags">109199360</int>
                                                                                                <int key="NSButtonFlags2">1</int>
                                                                                                <string key="NSAlternateContents"/>
                                                                                                <string key="NSKeyEquivalent"/>
                                                                                                <int key="NSPeriodicDelay">400</int>
                                                                                                <int key="NSPeriodicInterval">75</int>
-                                                                                               <nil key="NSMenuItem"/>
+                                                                                               <object class="NSMenuItem" key="NSMenuItem" id="434739017">
+                                                                                                       <reference key="NSMenu" ref="842244290"/>
+                                                                                                       <string key="NSTitle">High</string>
+                                                                                                       <string key="NSKeyEquiv"/>
+                                                                                                       <int key="NSMnemonicLoc">2147483647</int>
+                                                                                                       <int key="NSState">1</int>
+                                                                                                       <object class="NSCustomResource" key="NSImage">
+                                                                                                               <string key="NSClassName">NSImage</string>
+                                                                                                               <string key="NSResourceName">PriorityHighTemplate</string>
+                                                                                                       </object>
+                                                                                                       <object class="NSCustomResource" key="NSOnImage" id="257337323">
+                                                                                                               <string key="NSClassName">NSImage</string>
+                                                                                                               <string key="NSResourceName">NSMenuCheckmark</string>
+                                                                                                       </object>
+                                                                                                       <object class="NSCustomResource" key="NSMixedImage" id="922155245">
+                                                                                                               <string key="NSClassName">NSImage</string>
+                                                                                                               <string key="NSResourceName">NSMenuMixedState</string>
+                                                                                                       </object>
+                                                                                                       <string key="NSAction">_popUpItemAction:</string>
+                                                                                                       <reference key="NSTarget" ref="664513336"/>
+                                                                                               </object>
                                                                                                <bool key="NSMenuItemRespectAlignment">YES</bool>
                                                                                                <object class="NSMenu" key="NSMenu" id="842244290">
                                                                                                        <string key="NSTitle">OtherViews</string>
                                                                                                        <array class="NSMutableArray" key="NSMenuItems">
-                                                                                                               <object class="NSMenuItem" id="434739017">
-                                                                                                                       <reference key="NSMenu" ref="842244290"/>
-                                                                                                                       <string key="NSTitle">High</string>
-                                                                                                                       <string key="NSKeyEquiv"/>
-                                                                                                                       <int key="NSMnemonicLoc">2147483647</int>
-                                                                                                                       <object class="NSCustomResource" key="NSImage">
-                                                                                                                               <string key="NSClassName">NSImage</string>
-                                                                                                                               <string key="NSResourceName">PriorityHighTemplate</string>
-                                                                                                                       </object>
-                                                                                                                       <object class="NSCustomResource" key="NSOnImage" id="257337323">
-                                                                                                                               <string key="NSClassName">NSImage</string>
-                                                                                                                               <string key="NSResourceName">NSMenuCheckmark</string>
-                                                                                                                       </object>
-                                                                                                                       <object class="NSCustomResource" key="NSMixedImage" id="922155245">
-                                                                                                                               <string key="NSClassName">NSImage</string>
-                                                                                                                               <string key="NSResourceName">NSMenuMixedState</string>
-                                                                                                                       </object>
-                                                                                                                       <string key="NSAction">_popUpItemAction:</string>
-                                                                                                                       <reference key="NSTarget" ref="664513336"/>
-                                                                                                               </object>
+                                                                                                               <reference ref="434739017"/>
                                                                                                                <object class="NSMenuItem" id="347354464">
                                                                                                                        <reference key="NSMenu" ref="842244290"/>
                                                                                                                        <string key="NSTitle">Normal</string>
                                                                                                <bool key="NSAltersState">YES</bool>
                                                                                                <int key="NSArrowPosition">2</int>
                                                                                        </object>
+                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                </object>
                                                                                <object class="NSTextField" id="224369214">
                                                                                        <reference key="NSNextResponder" ref="638974187"/>
                                                                                        <reference key="NSNextKeyView" ref="711151157"/>
                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                        <object class="NSTextFieldCell" key="NSCell" id="580409040">
-                                                                                               <int key="NSCellFlags">67239424</int>
+                                                                                               <int key="NSCellFlags">67108864</int>
                                                                                                <int key="NSCellFlags2">272629760</int>
                                                                                                <string key="NSContents">Group:</string>
                                                                                                <reference key="NSSupport" ref="728563564"/>
                                                                                                <reference key="NSBackgroundColor" ref="729622418"/>
                                                                                                <reference key="NSTextColor" ref="932603584"/>
                                                                                        </object>
+                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                </object>
                                                                                <object class="NSBox" id="406479853">
                                                                                        <reference key="NSNextResponder" ref="638974187"/>
                                                                                                                        <reference key="NSNextKeyView" ref="1065995789"/>
                                                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                                                        <object class="NSTextFieldCell" key="NSCell" id="925446737">
-                                                                                                                               <int key="NSCellFlags">67239488</int>
+                                                                                                                               <int key="NSCellFlags">67108928</int>
                                                                                                                                <int key="NSCellFlags2">4327936</int>
                                                                                                                                <string key="NSContents">File</string>
                                                                                                                                <reference key="NSSupport" ref="26"/>
                                                                                                                                <reference key="NSBackgroundColor" ref="729622418"/>
                                                                                                                                <reference key="NSTextColor" ref="932603584"/>
                                                                                                                        </object>
+                                                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                                                </object>
                                                                                                                <object class="NSImageView" id="726814345">
                                                                                                                        <reference key="NSNextResponder" ref="1033055890"/>
                                                                                                                        <reference key="NSNextKeyView" ref="698797028"/>
                                                                                                                        <bool key="NSEnabled">YES</bool>
                                                                                                                        <object class="NSImageCell" key="NSCell" id="324048767">
-                                                                                                                               <int key="NSCellFlags">130560</int>
+                                                                                                                               <int key="NSCellFlags">134217728</int>
                                                                                                                                <int key="NSCellFlags2">33554432</int>
                                                                                                                                <object class="NSCustomResource" key="NSContents">
                                                                                                                                        <string key="NSClassName">NSImage</string>
                                                                                                                                <int key="NSStyle">0</int>
                                                                                                                                <bool key="NSAnimates">NO</bool>
                                                                                                                        </object>
+                                                                                                                       <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
                                                                                                                        <bool key="NSEditable">YES</bool>
                                                                                                                </object>
                                                                                                        </array>
                                                                                        <reference key="NSNextKeyView" ref="1033055890"/>
                                                                                        <string key="NSOffsets">{0, 0}</string>
                                                                                        <object class="NSTextFieldCell" key="NSTitleCell">
-                                                                                               <int key="NSCellFlags">67239424</int>
+                                                                                               <int key="NSCellFlags">67108864</int>
                                                                                                <int key="NSCellFlags2">0</int>
                                                                                                <string key="NSContents"/>
                                                                                                <reference key="NSSupport" ref="26"/>
                                                        <reference key="NSNextKeyView" ref="638974187"/>
                                                        <string key="NSOffsets">{0, 0}</string>
                                                        <object class="NSTextFieldCell" key="NSTitleCell">
-                                                               <int key="NSCellFlags">67239424</int>
+                                                               <int key="NSCellFlags">67108864</int>
                                                                <int key="NSCellFlags2">0</int>
                                                                <string key="NSContents">Box</string>
                                                                <reference key="NSSupport" ref="26"/>
                                        <reference key="NSWindow"/>
                                        <reference key="NSNextKeyView" ref="887781818"/>
                                </object>
-                               <string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
+                               <string key="NSScreenRect">{{0, 0}, {2560, 1440}}</string>
                                <string key="NSMinSize">{400, 260}</string>
                                <string key="NSMaxSize">{9999, 260}</string>
                                <string key="NSFrameAutosaveName">AddMagnetWindow</string>
                                        </object>
                                        <int key="connectionID">99</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fChangeDestinationButton</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="1065995789"/>
+                                       </object>
+                                       <int key="connectionID">104</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fDownloadToBox</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="406479853"/>
+                                       </object>
+                                       <int key="connectionID">105</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fDownloadToLabel</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="1059202456"/>
+                                       </object>
+                                       <int key="connectionID">106</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fGroupLabel</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="224369214"/>
+                                       </object>
+                                       <int key="connectionID">107</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fMagnetLinkLabel</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="368126870"/>
+                                       </object>
+                                       <int key="connectionID">108</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fPriorityLabel</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="485847244"/>
+                                       </object>
+                                       <int key="connectionID">109</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fCancelButton</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="533609783"/>
+                                       </object>
+                                       <int key="connectionID">110</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">fAddButton</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="636183414"/>
+                                       </object>
+                                       <int key="connectionID">111</int>
+                               </object>
                                <object class="IBConnectionRecord">
                                        <object class="IBOutletConnection" key="connection">
                                                <string key="label">delegate</string>
                        <nil key="activeLocalization"/>
                        <dictionary class="NSMutableDictionary" key="localizations"/>
                        <nil key="sourceID"/>
-                       <int key="maxID">103</int>
+                       <int key="maxID">111</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <array class="NSMutableArray" key="referencedPartialClassDescriptions">
                                        <string key="className">AddMagnetWindowController</string>
                                        <string key="superclassName">NSWindowController</string>
                                        <dictionary class="NSMutableDictionary" key="outlets">
+                                               <string key="fAddButton">NSButton</string>
+                                               <string key="fCancelButton">NSButton</string>
+                                               <string key="fChangeDestinationButton">NSButton</string>
+                                               <string key="fDownloadToBox">NSBox</string>
+                                               <string key="fDownloadToLabel">NSTextField</string>
+                                               <string key="fGroupLabel">NSTextField</string>
                                                <string key="fGroupPopUp">NSPopUpButton</string>
                                                <string key="fLocationField">NSTextField</string>
                                                <string key="fLocationImageView">NSImageView</string>
+                                               <string key="fMagnetLinkLabel">NSTextField</string>
                                                <string key="fNameField">NSTextField</string>
+                                               <string key="fPriorityLabel">NSTextField</string>
                                                <string key="fPriorityPopUp">NSPopUpButton</string>
                                                <string key="fStartCheck">NSButton</string>
                                        </dictionary>
                                        <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
+                                               <object class="IBToOneOutletInfo" key="fAddButton">
+                                                       <string key="name">fAddButton</string>
+                                                       <string key="candidateClassName">NSButton</string>
+                                               </object>
+                                               <object class="IBToOneOutletInfo" key="fCancelButton">
+                                                       <string key="name">fCancelButton</string>
+                                                       <string key="candidateClassName">NSButton</string>
+                                               </object>
+                                               <object class="IBToOneOutletInfo" key="fChangeDestinationButton">
+                                                       <string key="name">fChangeDestinationButton</string>
+                                                       <string key="candidateClassName">NSButton</string>
+                                               </object>
+                                               <object class="IBToOneOutletInfo" key="fDownloadToBox">
+                                                       <string key="name">fDownloadToBox</string>
+                                                       <string key="candidateClassName">NSBox</string>
+                                               </object>
+                                               <object class="IBToOneOutletInfo" key="fDownloadToLabel">
+                                                       <string key="name">fDownloadToLabel</string>
+                                                       <string key="candidateClassName">NSTextField</string>
+                                               </object>
+                                               <object class="IBToOneOutletInfo" key="fGroupLabel">
+                                                       <string key="name">fGroupLabel</string>
+                                                       <string key="candidateClassName">NSTextField</string>
+                                               </object>
                                                <object class="IBToOneOutletInfo" key="fGroupPopUp">
                                                        <string key="name">fGroupPopUp</string>
                                                        <string key="candidateClassName">NSPopUpButton</string>
                                                        <string key="name">fLocationImageView</string>
                                                        <string key="candidateClassName">NSImageView</string>
                                                </object>
+                                               <object class="IBToOneOutletInfo" key="fMagnetLinkLabel">
+                                                       <string key="name">fMagnetLinkLabel</string>
+                                                       <string key="candidateClassName">NSTextField</string>
+                                               </object>
                                                <object class="IBToOneOutletInfo" key="fNameField">
                                                        <string key="name">fNameField</string>
                                                        <string key="candidateClassName">NSTextField</string>
                                                </object>
+                                               <object class="IBToOneOutletInfo" key="fPriorityLabel">
+                                                       <string key="name">fPriorityLabel</string>
+                                                       <string key="candidateClassName">NSTextField</string>
+                                               </object>
                                                <object class="IBToOneOutletInfo" key="fPriorityPopUp">
                                                        <string key="name">fPriorityPopUp</string>
                                                        <string key="candidateClassName">NSPopUpButton</string>
                </object>
                <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
                        <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
-                       <real value="1070" key="NS.object.0"/>
+                       <real value="1080" key="NS.object.0"/>
                </object>
                <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
                <int key="IBDocument.defaultPropertyAccessControl">3</int>
                <dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
                        <string key="Magnet">{32, 32}</string>
                        <string key="NSApplicationIcon">{128, 128}</string>
-                       <string key="NSMenuCheckmark">{9, 8}</string>
-                       <string key="NSMenuMixedState">{7, 2}</string>
+                       <string key="NSMenuCheckmark">{11, 11}</string>
+                       <string key="NSMenuMixedState">{10, 3}</string>
+                       <string key="NSSwitch">{15, 15}</string>
                        <string key="PriorityHighTemplate">{128, 128}</string>
                        <string key="PriorityLowTemplate">{128, 128}</string>
                        <string key="PriorityNormalTemplate">{128, 128}</string>