Permalink
Browse files

Only display the text field when you're marked as in

  • Loading branch information...
1 parent 7577e68 commit b1e6c77439d50469683e35a5936439daa2baefdf @sstephenson sstephenson committed Dec 5, 2009
@@ -329,11 +329,11 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>22A5C66410C9DB450081DA40</string>
+ <string>22473F5610C9DF06006501C7</string>
<key>history</key>
<array>
<string>22A5C65510C9DA4A0081DA40</string>
- <string>22A5C65610C9DA4A0081DA40</string>
+ <string>22A5C66410C9DB450081DA40</string>
</array>
</dict>
<key>SplitCount</key>
@@ -345,14 +345,14 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {808, 486}}</string>
+ <string>{{0, 0}, {808, 480}}</string>
<key>RubberWindowFrame</key>
<string>312 407 1016 719 0 0 1920 1178 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
- <string>486pt</string>
+ <string>480pt</string>
</dict>
<dict>
<key>ContentConfiguration</key>
@@ -365,14 +365,14 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 491}, {808, 187}}</string>
+ <string>{{0, 485}, {808, 193}}</string>
<key>RubberWindowFrame</key>
<string>312 407 1016 719 0 0 1920 1178 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
<key>Proportion</key>
- <string>187pt</string>
+ <string>193pt</string>
</dict>
</array>
<key>Proportion</key>
@@ -391,9 +391,9 @@
</array>
<key>TableOfContents</key>
<array>
- <string>22A5C64B10C9D9900081DA40</string>
+ <string>22473F5710C9DF06006501C7</string>
<string>1CE0B1FE06471DED0097A5F4</string>
- <string>22A5C64C10C9D9900081DA40</string>
+ <string>22473F5810C9DF06006501C7</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
@@ -531,10 +531,6 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>22A5C66010C9DA4A0081DA40</string>
- <string>22A5C66110C9DA4A0081DA40</string>
- <string>1C78EAAD065D492600B07095</string>
- <string>1CD10A99069EF8BA00B06720</string>
<string>22DFB87410C3916D007292FD</string>
<string>/Users/sam/Projects/37signals Menu/37signals Menu.xcodeproj</string>
</array>
@@ -616,7 +612,7 @@
<key>TableOfContents</key>
<array>
<string>22DFB87410C3916D007292FD</string>
- <string>22A5C64D10C9D9900081DA40</string>
+ <string>22473F5910C9DF06006501C7</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
@@ -24,6 +24,18 @@
sepNavVisRange = "{303, 975}";
};
};
+ 22473F5610C9DF06006501C7 /* PlistBookmark */ = {
+ isa = PlistBookmark;
+ fRef = 8D1107310486CEB800E47090 /* Info.plist */;
+ fallbackIsa = PBXBookmark;
+ isK = 0;
+ kPath = (
+ CFBundleIdentifier,
+ );
+ name = "/Users/sam/Projects/37signals Menu/Info.plist";
+ rLen = 0;
+ rLoc = 9223372036854775807;
+ };
2266DBE010C6E68500327A2B /* Identity.rb */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {747, 510}}";
@@ -78,7 +90,7 @@
);
name = "/Users/sam/Projects/37signals Menu/Info.plist";
rLen = 0;
- rLoc = 9223372036854775807;
+ rLoc = 9223372036854775808;
};
22D8254610C3AD4B00213243 /* JournalEntryController.rb */ = {
uiCtxt = {
@@ -180,13 +192,14 @@
PBXFileDataSource_Target_ColumnID,
);
};
- PBXPerProjectTemplateStateSaveDate = 281663881;
- PBXWorkspaceStateSaveDate = 281663881;
+ PBXPerProjectTemplateStateSaveDate = 281665282;
+ PBXWorkspaceStateSaveDate = 281665282;
};
perUserProjectItems = {
- 22A5C65510C9DA4A0081DA40 /* PBXBookmark */ = 22A5C65510C9DA4A0081DA40 /* PBXBookmark */;
- 22A5C65610C9DA4A0081DA40 /* PlistBookmark */ = 22A5C65610C9DA4A0081DA40 /* PlistBookmark */;
- 22A5C66410C9DB450081DA40 /* PlistBookmark */ = 22A5C66410C9DB450081DA40 /* PlistBookmark */;
+ 22473F5610C9DF06006501C7 /* PlistBookmark */ = 22473F5610C9DF06006501C7 /* PlistBookmark */;
+ 22A5C65510C9DA4A0081DA40 = 22A5C65510C9DA4A0081DA40 /* PBXBookmark */;
+ 22A5C65610C9DA4A0081DA40 = 22A5C65610C9DA4A0081DA40 /* PlistBookmark */;
+ 22A5C66410C9DB450081DA40 = 22A5C66410C9DB450081DA40 /* PlistBookmark */;
};
sourceControlManager = 22DFB74F10C32103007292FD /* Source Control */;
userBuildSettings = {
Oops, something went wrong.
Binary file not shown.
View
@@ -20,7 +20,7 @@ def awakeFromNib
@statusBarItemView.statusBarItem = @statusBarItem
@statusBarItemView.menu = menu
@statusBarItem.view = @statusBarItemView
-
+
startLoading
end
@@ -65,8 +65,7 @@ def backpackResource(resource, didChangeAttributesTo: attributes)
elsif resource == journalStatus
statusTextField.stringValue = journalStatus.displayMessage
statusInOut.selectedSegment = journalStatus.in? ? 0 : 1
- adjustStatusTextField
- statusMenuItem.view = statusManipulationView
+ updateStatusView
end
end
@@ -91,18 +90,25 @@ def controlTextDidEndEditing(notification)
def inOutClicked(sender)
if sender.selectedSegment == 0
journalStatus.in!
- adjustStatusTextField(true)
+ updateStatusView
statusTextField.selectText(0)
else
journalStatus.out!
- adjustStatusTextField(false)
+ updateStatusView
menu.cancelTracking
end
end
- def adjustStatusTextField(editable = journalStatus.in?)
- statusTextField.enabled = editable
- statusTextField.editable = editable
- statusTextField.selectable = editable
+ def updateStatusView
+ if journalStatus.in?
+ statusTextField.enabled = true
+ statusManipulationView.frameSize = [300, 88]
+ else
+ statusTextField.enabled = false
+ statusManipulationView.frameSize = [300, 22]
+ end
+
+ statusMenuItem.view = statusManipulationView
+ statusManipulationView.display
end
end

0 comments on commit b1e6c77

Please sign in to comment.