Added advanced options sheet
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 12 Jul 2012 01:58:55 +0000 (11:58 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 12 Jul 2012 01:58:55 +0000 (11:58 +1000)
English.lproj/NotiPod.xib
notipod_gui.py

index b48b528..5ea898b 100644 (file)
                </object>
                <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
                        <bool key="EncodedWithXMLCoder">YES</bool>
-                       <integer value="29"/>
                        <integer value="528"/>
                        <integer value="372"/>
+                       <integer value="589"/>
+                       <integer value="654"/>
                </object>
                <object class="NSArray" key="IBDocument.PluginDependencies">
                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                                        <reference key="NSOnImage" ref="653914662"/>
                                                                        <reference key="NSMixedImage" ref="708543162"/>
                                                                </object>
+                                                               <object class="NSMenuItem" id="136009438">
+                                                                       <reference key="NSMenu" ref="1035673745"/>
+                                                                       <string key="NSTitle">Force Reload</string>
+                                                                       <string key="NSKeyEquiv">r</string>
+                                                                       <int key="NSKeyEquivModMask">1048576</int>
+                                                                       <int key="NSMnemonicLoc">2147483647</int>
+                                                                       <reference key="NSOnImage" ref="653914662"/>
+                                                                       <reference key="NSMixedImage" ref="708543162"/>
+                                                               </object>
+                                                               <object class="NSMenuItem" id="605520701">
+                                                                       <reference key="NSMenu" ref="1035673745"/>
+                                                                       <string key="NSTitle">Advanced Options</string>
+                                                                       <string key="NSKeyEquiv"/>
+                                                                       <int key="NSMnemonicLoc">2147483647</int>
+                                                                       <reference key="NSOnImage" ref="653914662"/>
+                                                                       <reference key="NSMixedImage" ref="708543162"/>
+                                                               </object>
                                                                <object class="NSMenuItem" id="905573793">
                                                                        <reference key="NSMenu" ref="1035673745"/>
                                                                        <bool key="NSIsDisabled">YES</bool>
                                <int key="NSWindowStyleMask">7</int>
                                <int key="NSWindowBacking">2</int>
                                <string key="NSWindowRect">{{196, 410}, {342, 100}}</string>
-                               <int key="NSWTFlags">603979776</int>
+                               <int key="NSWTFlags">1677721600</int>
                                <string key="NSWindowTitle">Window</string>
                                <string key="NSWindowClass">NSWindow</string>
                                <nil key="NSViewClass"/>
                                <string key="NSScreenRect">{{0, 0}, {1280, 778}}</string>
                                <string key="NSMaxSize">{1.79769e+308, 1.79769e+308}</string>
                        </object>
+                       <object class="NSWindowTemplate" id="573455889">
+                               <int key="NSWindowStyleMask">7</int>
+                               <int key="NSWindowBacking">2</int>
+                               <string key="NSWindowRect">{{235, 413}, {338, 146}}</string>
+                               <int key="NSWTFlags">1685585920</int>
+                               <string key="NSWindowTitle">Window</string>
+                               <string key="NSWindowClass">NSWindow</string>
+                               <nil key="NSViewClass"/>
+                               <object class="NSView" key="NSWindowView" id="673812527">
+                                       <reference key="NSNextResponder"/>
+                                       <int key="NSvFlags">256</int>
+                                       <object class="NSMutableArray" key="NSSubviews">
+                                               <bool key="EncodedWithXMLCoder">YES</bool>
+                                               <object class="NSTextField" id="700146128">
+                                                       <reference key="NSNextResponder" ref="673812527"/>
+                                                       <int key="NSvFlags">268</int>
+                                                       <string key="NSFrame">{{17, 116}, {144, 17}}</string>
+                                                       <reference key="NSSuperview" ref="673812527"/>
+                                                       <bool key="NSEnabled">YES</bool>
+                                                       <object class="NSTextFieldCell" key="NSCell" id="825115463">
+                                                               <int key="NSCellFlags">68288064</int>
+                                                               <int key="NSCellFlags2">272630784</int>
+                                                               <string key="NSContents">Advanced options</string>
+                                                               <reference key="NSSupport" ref="822023840"/>
+                                                               <reference key="NSControlView" ref="700146128"/>
+                                                               <reference key="NSBackgroundColor" ref="439689891"/>
+                                                               <reference key="NSTextColor" ref="888276067"/>
+                                                       </object>
+                                               </object>
+                                               <object class="NSTextField" id="877055365">
+                                                       <reference key="NSNextResponder" ref="673812527"/>
+                                                       <int key="NSvFlags">268</int>
+                                                       <string key="NSFrame">{{29, 56}, {77, 17}}</string>
+                                                       <reference key="NSSuperview" ref="673812527"/>
+                                                       <bool key="NSEnabled">YES</bool>
+                                                       <object class="NSTextFieldCell" key="NSCell" id="785647314">
+                                                               <int key="NSCellFlags">68288064</int>
+                                                               <int key="NSCellFlags2">272630784</int>
+                                                               <string key="NSContents">Path prefix:</string>
+                                                               <reference key="NSSupport" ref="822023840"/>
+                                                               <reference key="NSControlView" ref="877055365"/>
+                                                               <reference key="NSBackgroundColor" ref="439689891"/>
+                                                               <reference key="NSTextColor" ref="888276067"/>
+                                                       </object>
+                                               </object>
+                                               <object class="NSTextField" id="279796653">
+                                                       <reference key="NSNextResponder" ref="673812527"/>
+                                                       <int key="NSvFlags">268</int>
+                                                       <string key="NSFrame">{{29, 88}, {79, 17}}</string>
+                                                       <reference key="NSSuperview" ref="673812527"/>
+                                                       <bool key="NSEnabled">YES</bool>
+                                                       <object class="NSTextFieldCell" key="NSCell" id="618028443">
+                                                               <int key="NSCellFlags">68288064</int>
+                                                               <int key="NSCellFlags2">272630784</int>
+                                                               <string key="NSContents">Sync folder:</string>
+                                                               <reference key="NSSupport" ref="822023840"/>
+                                                               <reference key="NSControlView" ref="279796653"/>
+                                                               <reference key="NSBackgroundColor" ref="439689891"/>
+                                                               <reference key="NSTextColor" ref="888276067"/>
+                                                       </object>
+                                               </object>
+                                               <object class="NSTextField" id="975103534">
+                                                       <reference key="NSNextResponder" ref="673812527"/>
+                                                       <int key="NSvFlags">268</int>
+                                                       <string key="NSFrame">{{111, 54}, {207, 22}}</string>
+                                                       <reference key="NSSuperview" ref="673812527"/>
+                                                       <bool key="NSEnabled">YES</bool>
+                                                       <object class="NSTextFieldCell" key="NSCell" id="451802117">
+                                                               <int key="NSCellFlags">-1804468671</int>
+                                                               <int key="NSCellFlags2">272630784</int>
+                                                               <string key="NSContents"/>
+                                                               <reference key="NSSupport" ref="822023840"/>
+                                                               <reference key="NSControlView" ref="975103534"/>
+                                                               <bool key="NSDrawsBackground">YES</bool>
+                                                               <object class="NSColor" key="NSBackgroundColor" id="507586694">
+                                                                       <int key="NSColorSpace">6</int>
+                                                                       <string key="NSCatalogName">System</string>
+                                                                       <string key="NSColorName">textBackgroundColor</string>
+                                                                       <reference key="NSColor" ref="1023510502"/>
+                                                               </object>
+                                                               <object class="NSColor" key="NSTextColor" id="184603566">
+                                                                       <int key="NSColorSpace">6</int>
+                                                                       <string key="NSCatalogName">System</string>
+                                                                       <string key="NSColorName">textColor</string>
+                                                                       <reference key="NSColor" ref="495955423"/>
+                                                               </object>
+                                                       </object>
+                                               </object>
+                                               <object class="NSTextField" id="612450881">
+                                                       <reference key="NSNextResponder" ref="673812527"/>
+                                                       <int key="NSvFlags">268</int>
+                                                       <string key="NSFrame">{{111, 86}, {207, 22}}</string>
+                                                       <reference key="NSSuperview" ref="673812527"/>
+                                                       <bool key="NSEnabled">YES</bool>
+                                                       <object class="NSTextFieldCell" key="NSCell" id="989215186">
+                                                               <int key="NSCellFlags">-1804468671</int>
+                                                               <int key="NSCellFlags2">272630784</int>
+                                                               <string key="NSContents"/>
+                                                               <reference key="NSSupport" ref="822023840"/>
+                                                               <reference key="NSControlView" ref="612450881"/>
+                                                               <bool key="NSDrawsBackground">YES</bool>
+                                                               <reference key="NSBackgroundColor" ref="507586694"/>
+                                                               <reference key="NSTextColor" ref="184603566"/>
+                                                       </object>
+                                               </object>
+                                               <object class="NSButton" id="441114951">
+                                                       <reference key="NSNextResponder" ref="673812527"/>
+                                                       <int key="NSvFlags">268</int>
+                                                       <string key="NSFrame">{{14, 12}, {96, 32}}</string>
+                                                       <reference key="NSSuperview" ref="673812527"/>
+                                                       <bool key="NSEnabled">YES</bool>
+                                                       <object class="NSButtonCell" key="NSCell" id="803294316">
+                                                               <int key="NSCellFlags">67239424</int>
+                                                               <int key="NSCellFlags2">134217728</int>
+                                                               <string key="NSContents">Save</string>
+                                                               <reference key="NSSupport" ref="822023840"/>
+                                                               <reference key="NSControlView" ref="441114951"/>
+                                                               <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>
+                                       <string key="NSFrameSize">{338, 146}</string>
+                                       <reference key="NSSuperview"/>
+                               </object>
+                               <string key="NSScreenRect">{{0, 0}, {1920, 1178}}</string>
+                               <string key="NSMaxSize">{1.79769e+308, 1.79769e+308}</string>
+                       </object>
                </object>
                <object class="IBObjectContainer" key="IBDocument.Objects">
                        <object class="NSMutableArray" key="connectionRecords">
                                        </object>
                                        <int key="connectionID">647</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBActionConnection" key="connection">
+                                               <string key="label">loadLibrary:</string>
+                                               <reference key="source" ref="719278169"/>
+                                               <reference key="destination" ref="136009438"/>
+                                       </object>
+                                       <int key="connectionID">649</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">advancedSheet</string>
+                                               <reference key="source" ref="719278169"/>
+                                               <reference key="destination" ref="573455889"/>
+                                       </object>
+                                       <int key="connectionID">677</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBActionConnection" key="connection">
+                                               <string key="label">showAdvancedOptions:</string>
+                                               <reference key="source" ref="719278169"/>
+                                               <reference key="destination" ref="605520701"/>
+                                       </object>
+                                       <int key="connectionID">681</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBActionConnection" key="connection">
+                                               <string key="label">finishAdvancedOptions:</string>
+                                               <reference key="source" ref="719278169"/>
+                                               <reference key="destination" ref="441114951"/>
+                                       </object>
+                                       <int key="connectionID">683</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">advancedPathPrefix</string>
+                                               <reference key="source" ref="719278169"/>
+                                               <reference key="destination" ref="975103534"/>
+                                       </object>
+                                       <int key="connectionID">684</int>
+                               </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBOutletConnection" key="connection">
+                                               <string key="label">advancedSyncFolder</string>
+                                               <reference key="source" ref="719278169"/>
+                                               <reference key="destination" ref="612450881"/>
+                                       </object>
+                                       <int key="connectionID">685</int>
+                               </object>
                        </object>
                        <object class="IBMutableOrderedSet" key="objectRecords">
                                <object class="NSArray" key="orderedObjects">
                                                        <reference ref="909153648"/>
                                                        <reference ref="818049042"/>
                                                        <reference ref="905573793"/>
+                                                       <reference ref="136009438"/>
+                                                       <reference ref="605520701"/>
                                                </object>
                                                <reference key="parent" ref="834915777"/>
                                        </object>
                                                <reference key="object" ref="1023089114"/>
                                                <reference key="parent" ref="908068037"/>
                                        </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">648</int>
+                                               <reference key="object" ref="136009438"/>
+                                               <reference key="parent" ref="1035673745"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">650</int>
+                                               <reference key="object" ref="605520701"/>
+                                               <reference key="parent" ref="1035673745"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">653</int>
+                                               <reference key="object" ref="573455889"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="673812527"/>
+                                               </object>
+                                               <reference key="parent" ref="0"/>
+                                               <string key="objectName">AdvancedSheet</string>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">654</int>
+                                               <reference key="object" ref="673812527"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="700146128"/>
+                                                       <reference ref="877055365"/>
+                                                       <reference ref="279796653"/>
+                                                       <reference ref="975103534"/>
+                                                       <reference ref="612450881"/>
+                                                       <reference ref="441114951"/>
+                                               </object>
+                                               <reference key="parent" ref="573455889"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">655</int>
+                                               <reference key="object" ref="700146128"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="825115463"/>
+                                               </object>
+                                               <reference key="parent" ref="673812527"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">656</int>
+                                               <reference key="object" ref="825115463"/>
+                                               <reference key="parent" ref="700146128"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">659</int>
+                                               <reference key="object" ref="877055365"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="785647314"/>
+                                               </object>
+                                               <reference key="parent" ref="673812527"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">660</int>
+                                               <reference key="object" ref="785647314"/>
+                                               <reference key="parent" ref="877055365"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">661</int>
+                                               <reference key="object" ref="975103534"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="451802117"/>
+                                               </object>
+                                               <reference key="parent" ref="673812527"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">662</int>
+                                               <reference key="object" ref="451802117"/>
+                                               <reference key="parent" ref="975103534"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">670</int>
+                                               <reference key="object" ref="279796653"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="618028443"/>
+                                               </object>
+                                               <reference key="parent" ref="673812527"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">671</int>
+                                               <reference key="object" ref="618028443"/>
+                                               <reference key="parent" ref="279796653"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">672</int>
+                                               <reference key="object" ref="612450881"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="989215186"/>
+                                               </object>
+                                               <reference key="parent" ref="673812527"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">673</int>
+                                               <reference key="object" ref="989215186"/>
+                                               <reference key="parent" ref="612450881"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">678</int>
+                                               <reference key="object" ref="441114951"/>
+                                               <object class="NSMutableArray" key="children">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <reference ref="803294316"/>
+                                               </object>
+                                               <reference key="parent" ref="673812527"/>
+                                       </object>
+                                       <object class="IBObjectRecord">
+                                               <int key="objectID">679</int>
+                                               <reference key="object" ref="803294316"/>
+                                               <reference key="parent" ref="441114951"/>
+                                       </object>
                                </object>
                        </object>
                        <object class="NSMutableDictionary" key="flattenedProperties">
                                        <string>643.IBPluginDependency</string>
                                        <string>644.IBPluginDependency</string>
                                        <string>645.IBPluginDependency</string>
+                                       <string>648.IBPluginDependency</string>
+                                       <string>650.IBPluginDependency</string>
+                                       <string>653.IBEditorWindowLastContentRect</string>
+                                       <string>653.IBPluginDependency</string>
+                                       <string>653.IBWindowTemplateEditedContentRect</string>
+                                       <string>653.NSWindowTemplate.visibleAtLaunch</string>
+                                       <string>654.IBPluginDependency</string>
+                                       <string>655.IBPluginDependency</string>
+                                       <string>655.IBViewBoundsToFrameTransform</string>
+                                       <string>656.IBPluginDependency</string>
+                                       <string>659.IBPluginDependency</string>
+                                       <string>659.IBViewBoundsToFrameTransform</string>
+                                       <string>660.IBPluginDependency</string>
+                                       <string>661.IBPluginDependency</string>
+                                       <string>661.IBViewBoundsToFrameTransform</string>
+                                       <string>662.IBPluginDependency</string>
+                                       <string>670.IBPluginDependency</string>
+                                       <string>670.IBViewBoundsToFrameTransform</string>
+                                       <string>671.IBPluginDependency</string>
+                                       <string>672.IBPluginDependency</string>
+                                       <string>672.IBViewBoundsToFrameTransform</string>
+                                       <string>673.IBPluginDependency</string>
+                                       <string>678.IBPluginDependency</string>
+                                       <string>678.IBViewBoundsToFrameTransform</string>
+                                       <string>679.IBPluginDependency</string>
                                </object>
                                <object class="NSMutableArray" key="dict.values">
                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                        <integer value="1"/>
                                        <string>{74, 862}</string>
                                        <string>{{529, 476}, {148, 20}}</string>
-                                       <string>{{329, 160}, {381, 527}}</string>
+                                       <string>{{339, 91}, {381, 527}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{329, 160}, {381, 527}}</string>
+                                       <string>{{339, 91}, {381, 527}}</string>
                                        <integer value="1"/>
                                        <string>{{505, 213}, {252, 190}}</string>
                                        <boolean value="YES"/>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <string>{{89, 581}, {211, 33}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{82, 548}, {342, 100}}</string>
+                                       <string>{{329, 548}, {342, 100}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{82, 548}, {342, 100}}</string>
+                                       <string>{{329, 548}, {342, 100}}</string>
                                        <integer value="0"/>
                                        <string>{{196, 436}, {204, 74}}</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>{{329, 122}, {637, 540}}</string>
+                                       <string>{{803, 29}, {637, 540}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-                                       <string>{{329, 122}, {637, 540}}</string>
+                                       <string>{{803, 29}, {637, 540}}</string>
                                        <boolean value="NO"/>
                                        <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>{{428, 681}, {189, 93}}</string>
+                                       <string>{{428, 641}, {215, 133}}</string>
                                        <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                        <integer value="1"/>
                                        <string>{{323, 672}, {199, 203}}</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>
+                                       <string>{{1079, 877}, {338, 146}}</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>{{1079, 877}, {338, 146}}</string>
+                                       <boolean value="NO"/>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <object class="NSAffineTransform">
+                                               <bytes key="NSTransformStruct">P4AAAL+AAABBiAAAwsIAAA</bytes>
+                                       </object>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <object class="NSAffineTransform">
+                                               <bytes key="NSTransformStruct">P4AAAL+AAABB6AAAwhQAAA</bytes>
+                                       </object>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <object class="NSAffineTransform">
+                                               <bytes key="NSTransformStruct">P4AAAL+AAABC3gAAwiAAAA</bytes>
+                                       </object>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <object class="NSAffineTransform">
+                                               <bytes key="NSTransformStruct">P4AAAL+AAABB6AAAwooAAA</bytes>
+                                       </object>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <object class="NSAffineTransform">
+                                               <bytes key="NSTransformStruct">P4AAAL+AAABC3gAAwpAAAA</bytes>
+                                       </object>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+                                       <object class="NSAffineTransform">
+                                               <bytes key="NSTransformStruct">P4AAAL+AAABBmAAAwigAAA</bytes>
+                                       </object>
+                                       <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
                                </object>
                        </object>
                        <object class="NSMutableDictionary" key="unlocalizedProperties">
                                </object>
                        </object>
                        <nil key="sourceID"/>
-                       <int key="maxID">647</int>
+                       <int key="maxID">685</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <object class="NSMutableArray" key="referencedPartialClassDescriptions">
                                                        <string>doCancel:</string>
                                                        <string>doPreview:</string>
                                                        <string>doSync:</string>
+                                                       <string>finishAdvancedOptions:</string>
+                                                       <string>loadLibrary:</string>
+                                                       <string>showAdvancedOptions:</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>
+                                                       <string>id</string>
+                                                       <string>id</string>
                                                </object>
                                        </object>
                                        <object class="NSMutableDictionary" key="actionInfosByName">
                                                        <string>doCancel:</string>
                                                        <string>doPreview:</string>
                                                        <string>doSync:</string>
+                                                       <string>finishAdvancedOptions:</string>
+                                                       <string>loadLibrary:</string>
+                                                       <string>showAdvancedOptions:</string>
                                                </object>
                                                <object class="NSMutableArray" key="dict.values">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
                                                                <string key="name">doSync:</string>
                                                                <string key="candidateClassName">id</string>
                                                        </object>
+                                                       <object class="IBActionInfo">
+                                                               <string key="name">finishAdvancedOptions:</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
+                                                       <object class="IBActionInfo">
+                                                               <string key="name">loadLibrary:</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
+                                                       <object class="IBActionInfo">
+                                                               <string key="name">showAdvancedOptions:</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">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>advancedPathPrefix</string>
+                                                       <string>advancedSheet</string>
+                                                       <string>advancedSyncFolder</string>
                                                        <string>folderModel</string>
                                                        <string>loadingIndicator</string>
                                                        <string>loadingLabel</string>
                                                        <string>id</string>
                                                        <string>id</string>
                                                        <string>id</string>
+                                                       <string>id</string>
+                                                       <string>id</string>
+                                                       <string>id</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>advancedPathPrefix</string>
+                                                       <string>advancedSheet</string>
+                                                       <string>advancedSyncFolder</string>
                                                        <string>folderModel</string>
                                                        <string>loadingIndicator</string>
                                                        <string>loadingLabel</string>
                                                </object>
                                                <object class="NSMutableArray" key="dict.values">
                                                        <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <object class="IBToOneOutletInfo">
+                                                               <string key="name">advancedPathPrefix</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
+                                                       <object class="IBToOneOutletInfo">
+                                                               <string key="name">advancedSheet</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
+                                                       <object class="IBToOneOutletInfo">
+                                                               <string key="name">advancedSyncFolder</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
                                                        <object class="IBToOneOutletInfo">
                                                                <string key="name">folderModel</string>
                                                                <string key="candidateClassName">id</string>
index 283a547..2d2cffd 100644 (file)
@@ -122,6 +122,10 @@ class NotiPodController(NSObject):
        loadingLabel = objc.IBOutlet()
        loadingIndicator = objc.IBOutlet()
 
+       advancedSheet = objc.IBOutlet()
+       advancedSyncFolder = objc.IBOutlet()
+       advancedPathPrefix = objc.IBOutlet()
+
        previewWindow = objc.IBOutlet()
        previewText = objc.IBOutlet()
 
@@ -145,7 +149,7 @@ class NotiPodController(NSObject):
                self.folderModel.loadFolders_(folders)
 
                self.library = libnotipod.ITunesLibrary.alloc().init()
-               self.loadLibrary()
+               self.loadLibrary_(self)
 
        def applicationWillTerminate_(self, _):
                self.prefs().synchronize()
@@ -155,24 +159,10 @@ class NotiPodController(NSObject):
 
        def windowDidBecomeKey_(self, _):
                if self.library.needs_reload():
-                       print "needs reload!"
-                       self.loadLibrary()
-               else:
-                       print "no reloading this time"
+                       self.loadLibrary_(self)
 
 
        # Utility methods
-       def loadLibrary(self):
-               if self.runningGenerator:
-                       return
-
-               def finish():
-                       self.playlistModel.setPlaylists(self.library.get_playlists())
-               def fail():
-                       NSRunAlertPanel("Error!", "Unable to load iTunes library! Exiting...", "Ok", None, None)
-                       sys.exit(0)
-               self.runGenerator(lambda: self.library.load_(None), finish, fail)
-
        def runGenerator(self, func, finish, fail):
                assert not self.runningGenerator
                self.runningGenerator = True
@@ -205,11 +195,42 @@ class NotiPodController(NSObject):
                if finish:
                        finish()
 
+
+       @objc.IBAction
+       def loadLibrary_(self, sender):
+               if self.runningGenerator:
+                       return
+
+               def finish():
+                       self.playlistModel.setPlaylists(self.library.get_playlists())
+               def fail():
+                       NSRunAlertPanel("Error!", "Unable to load iTunes library! Exiting...", "Ok", None, None)
+                       sys.exit(0)
+               self.runGenerator(lambda: self.library.load_(None), finish, fail)
+
+       @objc.IBAction
+       def showAdvancedOptions_(self, sender):
+               if self.runningGenerator:
+                       return
+               target = self.getCurrentTarget()
+               self.advancedSyncFolder.setStringValue_(target["folder"])
+               self.advancedPathPrefix.setStringValue_(target["path_prefix"])
+               NSApp.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo_(self.advancedSheet, self.window, None, None, None)
+
+       @objc.IBAction
+       def finishAdvancedOptions_(self, sender):
+               target = self.getCurrentTarget()
+               target["folder"] = self.advancedSyncFolder.stringValue()
+               target["path_prefix"] = self.advancedPathPrefix.stringValue()
+               self._savePrefs()
+               NSApp.endSheet_(self.advancedSheet)
+               self.advancedSheet.orderOut_(self)
+
        @objc.IBAction
        def doCancel_(self, sender):
                self.runningGenerator = False
 
-       def getDestFolder(self):
+       def getCheckTarget(self):
                target = self.getCurrentTarget()
                if not target:
                        NSRunAlertPanel("Error!", "You must choose a folder first!", "Ok", None, None)
@@ -218,13 +239,15 @@ class NotiPodController(NSObject):
                if not os.path.isdir(folder.encode("utf-8")):
                        NSRunAlertPanel("Error!", "Destination " + folder + " does not exist, try mounting it first?", "Ok", None, None)
                        return
-               return folder
+               target["folder"] = folder
+               target["path_prefix"] = target["path_prefix"].encode("utf-8")
+               return target
 
        def doPreviewThread(self):
                yield "Calculating changes..."
 
-               folder = self.getDestFolder()
-               if not folder:
+               target = self.getCheckTarget()
+               if not target:
                        return
 
                all_tracks = set()
@@ -240,7 +263,7 @@ class NotiPodController(NSObject):
                gen = libnotipod.sync(
                        dry_run=True,
                        source=self.library.folder,
-                       dest=folder, 
+                       dest=target["folder"],
                        files_to_copy=all_filenames,
                )
                self.previewResult = "\n".join(gen)
@@ -259,8 +282,8 @@ class NotiPodController(NSObject):
 
        @objc.IBAction
        def doSync_(self, sender):
-               folder = self.getDestFolder()
-               if not folder:
+               target = self.getCheckTarget()
+               if not target:
                        return
 
                all_tracks = set()
@@ -289,8 +312,13 @@ class NotiPodController(NSObject):
                                        tracks.append(self.library.get_track_filename(trackID))
                        if playlist_id not in orig_playlists and len(tracks) < 10:
                                continue
-                       libnotipod.export_m3u(dry_run=False, dest=folder, path_prefix="",
-                                       playlist_name=playlist.name, files=tracks)
+                       libnotipod.export_m3u(
+                               dry_run=False,
+                               dest=target["folder"],
+                               path_prefix=target["path_prefix"],
+                               playlist_name=playlist.name,
+                               files=tracks
+                       )
 
                def finish():
                        NSRunAlertPanel("Complete!", "Synchronisation is complete", "Ok", None, None)
@@ -299,7 +327,7 @@ class NotiPodController(NSObject):
                                libnotipod.sync(
                                        dry_run=False,
                                        source=self.library.folder,
-                                       dest=folder, 
+                                       dest=target["folder"],
                                        files_to_copy=all_filenames,
                                )
                        ,
@@ -333,6 +361,7 @@ class NotiPodController(NSObject):
                        target["folder"] = f
                        target["playlists"] = list(playlists)
                        target["uuid"] = uuid.uuid1().get_hex()
+                       target["path_prefix"] = "../"
                        if first:
                                first = False
                                self.setCurrentTarget_(target["uuid"])
@@ -392,6 +421,7 @@ class NotiPodController(NSObject):
                        target["folder"] = folder
                        target["playlists"] = self.playlists()
                        target["uuid"] = uuid.uuid1().get_hex()
+                       target["path_prefix"] = "../"
                        self.targets.insertObject_atIndex_(target, 0)
 
                self.setCurrentTarget_(target["uuid"])