Permalink
Browse files

CommitView: Correctly set the default commitmessage font to Monaco 12

This way, wo don't need any text entered to set a font.
  • Loading branch information...
1 parent b005066 commit 978d7cb2b1dcc4ab7101998393828f6c3a557432 @pieter pieter committed Sep 25, 2008
Showing with 6 additions and 24 deletions.
  1. +2 −0 PBGitCommitController.m
  2. +4 −24 PBGitCommitView.xib
View
@@ -22,6 +22,8 @@ - (void)awakeFromNib
[cachedButtonCell setAction:@selector(cellClicked:)];
[self refresh:self];
+
+ [commitMessageView setTypingAttributes:[NSDictionary dictionaryWithObject:[NSFont fontWithName:@"Monaco" size:12.0] forKey:NSFontAttributeName]];
[unstagedFilesController setFilterPredicate:[NSPredicate predicateWithFormat:@"cached == 0"]];
[cachedFilesController setFilterPredicate:[NSPredicate predicateWithFormat:@"cached == 1"]];
View
@@ -8,7 +8,7 @@
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="1" id="9"/>
+ <integer value="133"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -114,7 +114,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="12" id="777559147"/>
<reference ref="777559147"/>
- <reference ref="9"/>
+ <integer value="1" id="9"/>
</object>
</object>
</object>
@@ -359,33 +359,13 @@
<string>WebURLsWithTitlesPboardType</string>
</object>
</object>
- <string key="NSFrameSize">{427, 32}</string>
+ <string key="NSFrameSize">{427, 14}</string>
<reference key="NSSuperview" ref="245211955"/>
<object class="NSTextContainer" key="NSTextContainer" id="311869542">
<object class="NSLayoutManager" key="NSLayoutManager">
<object class="NSTextStorage" key="NSTextStorage">
<object class="NSMutableString" key="NSString">
- <bytes key="NS.bytes">Cg</bytes>
- </object>
- <object class="NSDictionary" key="NSAttributes">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSMutableArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>NSFont</string>
- <string>NSParagraphStyle</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSFont">
- <string key="NSName">Monaco</string>
- <double key="NSSize">1.200000e+01</double>
- <int key="NSfFlags">16</int>
- </object>
- <object class="NSParagraphStyle">
- <int key="NSAlignment">4</int>
- <nil key="NSTabStops"/>
- </object>
- </object>
+ <characters key="NS.bytes"/>
</object>
<nil key="NSDelegate"/>
</object>

0 comments on commit 978d7cb

Please sign in to comment.