specify the background style of the up and down arrows in the status bar

This commit is contained in:
Mitchell Livingston
2012-06-10 13:47:32 +00:00
parent 9d3f8cb79a
commit d38f76ac74
3 changed files with 40 additions and 26 deletions

View File

@@ -2,13 +2,13 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1060</int>
<string key="IBDocument.SystemVersion">11B26</string>
<string key="IBDocument.InterfaceBuilderVersion">1617</string>
<string key="IBDocument.AppKitVersion">1138</string>
<string key="IBDocument.HIToolboxVersion">566.00</string>
<string key="IBDocument.SystemVersion">11E53</string>
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
<string key="IBDocument.AppKitVersion">1138.47</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">1617</string>
<string key="NS.object.0">2182</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>NSTextField</string>
@@ -25,7 +25,10 @@
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</array>
<dictionary class="NSMutableDictionary" key="IBDocument.Metadata"/>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
<integer value="1" key="NS.object.0"/>
</object>
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<object class="NSCustomObject" id="1001">
<string key="NSClassName">StatusBarController</string>
@@ -37,7 +40,7 @@
<string key="NSClassName">NSApplication</string>
</object>
<object class="NSCustomView" id="193923251">
<nil key="NSNextResponder"/>
<reference key="NSNextResponder"/>
<int key="NSvFlags">266</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="NSTextField" id="798598333">
@@ -45,6 +48,7 @@
<int key="NSvFlags">257</int>
<string key="NSFrame">{{258, 4}, {64, 14}}</string>
<reference key="NSSuperview" ref="193923251"/>
<reference key="NSWindow"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="593992364">
<int key="NSCellFlags">67239424</int>
@@ -81,6 +85,7 @@
<int key="NSvFlags">257</int>
<string key="NSFrame">{{336, 4}, {64, 14}}</string>
<reference key="NSSuperview" ref="193923251"/>
<reference key="NSWindow"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="836599047">
<int key="NSCellFlags">67239424</int>
@@ -105,6 +110,7 @@
</set>
<string key="NSFrame">{{325, 5}, {8, 12}}</string>
<reference key="NSSuperview" ref="193923251"/>
<reference key="NSWindow"/>
<bool key="NSEnabled">YES</bool>
<object class="NSImageCell" key="NSCell" id="803566449">
<int key="NSCellFlags">130560</int>
@@ -133,6 +139,7 @@
</set>
<string key="NSFrame">{{247, 5}, {8, 12}}</string>
<reference key="NSSuperview" ref="193923251"/>
<reference key="NSWindow"/>
<bool key="NSEnabled">YES</bool>
<object class="NSImageCell" key="NSCell" id="300181742">
<int key="NSCellFlags">130560</int>
@@ -153,6 +160,7 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{5, 2}, {103, 17}}</string>
<reference key="NSSuperview" ref="193923251"/>
<reference key="NSWindow"/>
<bool key="NSEnabled">YES</bool>
<object class="NSPopUpButtonCell" key="NSCell" id="417448726">
<int key="NSCellFlags">-2076049856</int>
@@ -254,6 +262,8 @@
</object>
</array>
<string key="NSFrameSize">{400, 21}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<string key="NSClassName">StatusBarView</string>
<string key="NSExtension">NSView</string>
</object>
@@ -332,6 +342,14 @@
</object>
<int key="connectionID">41</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">fTotalULImageView</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="745192128"/>
</object>
<int key="connectionID">42</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -505,29 +523,19 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">41</int>
<int key="maxID">42</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">StatusBarController</string>
<string key="superclassName">NSViewController</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">setStatusLabel:</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">setStatusLabel:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">setStatusLabel:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="fStatusButton">NSButton</string>
<string key="fTotalDLField">NSTextField</string>
<string key="fTotalDLImageView">NSImageView</string>
<string key="fTotalULField">NSTextField</string>
<string key="fTotalULImageView">NSImageView</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="fStatusButton">
@@ -546,6 +554,10 @@
<string key="name">fTotalULField</string>
<string key="candidateClassName">NSTextField</string>
</object>
<object class="IBToOneOutletInfo" key="fTotalULImageView">
<string key="name">fTotalULImageView</string>
<string key="candidateClassName">NSImageView</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
@@ -570,16 +582,16 @@
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
<integer value="1060" key="NS.object.0"/>
<real value="1070" 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="DownArrowTemplate">{8, 12}</string>
<string key="NSMenuCheckmark">{9, 8}</string>
<string key="NSMenuMixedState">{7, 2}</string>
<string key="UpArrowTemplate">{8, 12}</string>
<string key="YingYangTemplate">{10, 12}</string>
<string key="DownArrowTemplate">{128, 128}</string>
<string key="NSMenuCheckmark">{11, 11}</string>
<string key="NSMenuMixedState">{10, 3}</string>
<string key="UpArrowTemplate">{128, 128}</string>
<string key="YingYangTemplate">{128, 128}</string>
</dictionary>
</data>
</archive>

View File

@@ -30,7 +30,7 @@
{
IBOutlet NSButton * fStatusButton;
IBOutlet NSTextField * fTotalDLField, * fTotalULField;
IBOutlet NSImageView * fTotalDLImageView;
IBOutlet NSImageView * fTotalDLImageView, * fTotalULImageView;
tr_session * fLib;

View File

@@ -76,6 +76,8 @@ typedef enum
[[fStatusButton cell] setBackgroundStyle: NSBackgroundStyleRaised];
[[fTotalDLField cell] setBackgroundStyle: NSBackgroundStyleRaised];
[[fTotalULField cell] setBackgroundStyle: NSBackgroundStyleRaised];
[[fTotalDLImageView cell] setBackgroundStyle: NSBackgroundStyleRaised];
[[fTotalULImageView cell] setBackgroundStyle: NSBackgroundStyleRaised];
[self updateSpeedFieldsToolTips];