Skip to content

Commit

Permalink
Bump version, revise Advanced preferences view for v2.3 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
codykrieger committed Sep 24, 2012
1 parent f5a0c69 commit 22979d8
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Classes/AdvancedPreferencesViewController.h
Expand Up @@ -14,4 +14,6 @@

@property (strong) GSPreferences *prefs;

- (IBAction)whyButtonClicked:(id)sender;

@end
9 changes: 9 additions & 0 deletions Classes/AdvancedPreferencesViewController.m
Expand Up @@ -11,6 +11,8 @@

#define kAdvancedPreferencesName @"Advanced"

#define kPowerSourceBasedSwitchingExplanationURL [kApplicationWebsiteURL stringByAppendingString:@"/switching.html#power-source-based-switching"]

@implementation AdvancedPreferencesViewController

@synthesize prefs;
Expand Down Expand Up @@ -44,4 +46,11 @@ - (NSImage *)image
return [NSImage imageNamed:NSImageNameAdvanced];
}

#pragma mark - AdvancedPreferencesViewController API

- (IBAction)whyButtonClicked:(id)sender
{
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:kPowerSourceBasedSwitchingExplanationURL]];
}

@end
84 changes: 76 additions & 8 deletions Localizations/English.lproj/AdvancedPreferencesView.xib
Expand Up @@ -2,16 +2,18 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1060</int>
<string key="IBDocument.SystemVersion">12C31a</string>
<string key="IBDocument.InterfaceBuilderVersion">2549</string>
<string key="IBDocument.AppKitVersion">1187.2</string>
<string key="IBDocument.SystemVersion">12C54</string>
<string key="IBDocument.InterfaceBuilderVersion">2840</string>
<string key="IBDocument.AppKitVersion">1187.34</string>
<string key="IBDocument.HIToolboxVersion">625.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2549</string>
<string key="NS.object.0">2840</string>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSButton</string>
<string>NSButtonCell</string>
<string>NSCustomObject</string>
<string>NSCustomView</string>
<string>NSObjectController</string>
Expand Down Expand Up @@ -42,19 +44,48 @@
<int key="NSvFlags">268</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSButton" id="472977295">
<reference key="NSNextResponder" ref="1005"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{184, 37}, {72, 32}}</string>
<reference key="NSSuperview" ref="1005"/>
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="476301754">
<int key="NSCellFlags">67108864</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents">Why?</string>
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">13</double>
<int key="NSfFlags">1044</int>
</object>
<string key="NSCellIdentifier">_NS:9</string>
<reference key="NSControlView" ref="472977295"/>
<int key="NSButtonFlags">-2038284288</int>
<int key="NSButtonFlags2">129</int>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
</object>
<object class="NSTextField" id="58312175">
<reference key="NSNextResponder" ref="1005"/>
<int key="NSvFlags">268</int>
<string key="NSFrame">{{17, 64}, {406, 34}}</string>
<string key="NSFrame">{{17, 85}, {406, 34}}</string>
<reference key="NSSuperview" ref="1005"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="472977295"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="NSAntiCompressionPriority">{250, 750}</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="998740538">
<int key="NSCellFlags">67108864</int>
<int key="NSCellFlags2">138674176</int>
<string key="NSContents">Power source-based switching has been removed from gfxCardStatus in v2.3. It will not be returning in the future.</string>
<string key="NSContents">Power source-based switching has been removed from gfxCardStatus. It will not be returning in the future.</string>
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">13</double>
Expand Down Expand Up @@ -82,7 +113,6 @@
</object>
</object>
<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
<bool key="NSControlAutosetMaxLayoutWidth">YES</bool>
</object>
</object>
<string key="NSFrameSize">{440, 162}</string>
Expand All @@ -107,6 +137,14 @@
</object>
<int key="connectionID">4</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">whyButtonClicked:</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="472977295"/>
</object>
<int key="connectionID">74</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">contentObject: prefs.prefsDict</string>
Expand Down Expand Up @@ -159,6 +197,7 @@
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="58312175"/>
<reference ref="472977295"/>
</object>
<reference key="parent" ref="0"/>
</object>
Expand All @@ -181,6 +220,20 @@
<reference key="object" ref="998740538"/>
<reference key="parent" ref="58312175"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">72</int>
<reference key="object" ref="472977295"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="476301754"/>
</object>
<reference key="parent" ref="1005"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">73</int>
<reference key="object" ref="476301754"/>
<reference key="parent" ref="472977295"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
Expand All @@ -194,6 +247,8 @@
<string>26.IBPluginDependency</string>
<string>68.IBPluginDependency</string>
<string>69.IBPluginDependency</string>
<string>72.IBPluginDependency</string>
<string>73.IBPluginDependency</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand All @@ -204,6 +259,8 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
Expand All @@ -218,14 +275,25 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">69</int>
<int key="maxID">74</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">AdvancedPreferencesViewController</string>
<string key="superclassName">NSViewController</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">whyButtonClicked:</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">whyButtonClicked:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">whyButtonClicked:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/AdvancedPreferencesViewController.h</string>
Expand Down
4 changes: 2 additions & 2 deletions gfxCardStatus-Info.plist
Expand Up @@ -19,13 +19,13 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.3b1</string>
<string>2.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array/>
<key>CFBundleVersion</key>
<string>2.2.2</string>
<string>2.3</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>LSUIElement</key>
Expand Down
4 changes: 2 additions & 2 deletions gfxCardStatus.xcodeproj/project.pbxproj
Expand Up @@ -720,7 +720,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "";
INSTALL_PATH = /Applications;
MACOSX_DEPLOYMENT_TARGET = 10.6;
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-DDEBUG";
RUN_CLANG_STATIC_ANALYZER = YES;
Expand All @@ -746,7 +746,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "";
INSTALL_PATH = /Applications;
MACOSX_DEPLOYMENT_TARGET = 10.6;
MACOSX_DEPLOYMENT_TARGET = 10.7;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = macosx;
VALIDATE_PRODUCT = YES;
Expand Down

0 comments on commit 22979d8

Please sign in to comment.