Skip to content

Commit

Permalink
CommitView: Correctly set the default commitmessage font to Monaco 12
Browse files Browse the repository at this point in the history
This way, wo don't need any text entered to set a font.
  • Loading branch information
pieter committed Sep 25, 2008
1 parent b005066 commit 978d7cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
2 changes: 2 additions & 0 deletions PBGitCommitController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"]];
Expand Down
28 changes: 4 additions & 24 deletions PBGitCommitView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 978d7cb

Please sign in to comment.