Skip to content

Commit

Permalink
added version string to about window
Browse files Browse the repository at this point in the history
  • Loading branch information
pallotron committed Oct 1, 2013
1 parent cfce2a6 commit 9f9f2a4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion yubiswitch/AboutWindowController.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

#import <Cocoa/Cocoa.h>

@interface AboutWindowController : NSWindowController
@interface AboutWindowController : NSWindowController {
IBOutlet NSTextField* versionLabel;
}



@end
4 changes: 3 additions & 1 deletion yubiswitch/AboutWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ - (id)initWithWindow:(NSWindow *)window
- (void)windowDidLoad
{
[super windowDidLoad];

[versionLabel
setStringValue:[[NSBundle mainBundle]
objectForInfoDictionaryKey:@"CFBundleVersion"]];
}

@end
10 changes: 10 additions & 0 deletions yubiswitch/AboutWindowController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AboutWindowController">
<connections>
<outlet property="versionLabel" destination="Jqy-bb-T5J" id="mZc-Aq-wXB"/>
<outlet property="window" destination="iua-nl-brR" id="Ohi-V7-2zz"/>
</connections>
</customObject>
Expand Down Expand Up @@ -41,6 +42,15 @@ http://github.com/pallotron/yubiswitch</string>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="appicon-32" id="83S-gz-IrG"/>
</imageView>
<textField identifier="version" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Jqy-bb-T5J">
<rect key="frame" x="295" y="126" width="38" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="versionlabel" id="bel-xJ-VS9">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</subviews>
</view>
</window>
Expand Down
4 changes: 2 additions & 2 deletions yubiswitch/yubiswitch-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>0.2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) 2013 Angelo "pallotron" Failla &lt;[email protected]&gt; -- GNUGPL v3</string>
<string>Copyright (C) 2013 Angelo &quot;pallotron&quot; Failla &lt;[email protected]&gt; -- GNUGPL v3</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand Down

0 comments on commit 9f9f2a4

Please sign in to comment.