Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an Info preference tab to show feedback, faqs and rate on store b…
…uttons
- Loading branch information
Showing
9 changed files
with
133 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// PrefsInfoViewController.h | ||
// Mail Notifr | ||
// | ||
// Created by James Chen on 10/8/14. | ||
// Copyright (c) 2014 ashchan.com. All rights reserved. | ||
// | ||
|
||
@import Cocoa; | ||
|
||
@interface PrefsInfoViewController : NSViewController | ||
|
||
- (NSString *)identifier; | ||
- (NSImage *)image; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// PrefsInfoViewController.m | ||
// Mail Notifr | ||
// | ||
// Created by James Chen on 10/8/14. | ||
// Copyright (c) 2014 ashchan.com. All rights reserved. | ||
// | ||
|
||
#import "PrefsInfoViewController.h" | ||
|
||
@interface PrefsInfoViewController () | ||
|
||
@end | ||
|
||
@implementation PrefsInfoViewController | ||
|
||
- (id)init { | ||
if (self = [super initWithNibName:@"PreferencesInfo" bundle:nil]) { | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (NSString *)title { | ||
return NSLocalizedString(@"Info", nil); | ||
} | ||
|
||
- (NSString *)identifier { | ||
return PrefsToolbarItemInfo; | ||
} | ||
|
||
- (NSImage *)image { | ||
return [NSImage imageNamed:NSImageNameInfo]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6249" systemVersion="14A386a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> | ||
<dependencies> | ||
<deployment identifier="macosx"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6249"/> | ||
</dependencies> | ||
<objects> | ||
<customObject id="-2" userLabel="File's Owner" customClass="PrefsInfoViewController"> | ||
<connections> | ||
<outlet property="view" destination="c22-O7-iKe" id="NSQ-FW-1eM"/> | ||
</connections> | ||
</customObject> | ||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> | ||
<customObject id="-3" userLabel="Application" customClass="NSObject"/> | ||
<customView id="c22-O7-iKe" userLabel="Info"> | ||
<rect key="frame" x="0.0" y="0.0" width="450" height="143"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<subviews> | ||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="j2o-4S-Bto"> | ||
<rect key="frame" x="14" y="54" width="180" height="32"/> | ||
<buttonCell key="cell" type="push" title="Help & FAQs" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Iil-Lq-cti"> | ||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="system"/> | ||
</buttonCell> | ||
<connections> | ||
<action selector="showFAQs:" target="-1" id="xGB-CB-M7V"/> | ||
</connections> | ||
</button> | ||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Jmb-qT-h67"> | ||
<rect key="frame" x="14" y="95" width="180" height="32"/> | ||
<buttonCell key="cell" type="push" title="Feedback" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="hzA-y9-Me0"> | ||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="system"/> | ||
</buttonCell> | ||
<connections> | ||
<action selector="showFeedback:" target="-1" id="Bfo-dA-LXc"/> | ||
</connections> | ||
</button> | ||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rtg-nQ-Xk6"> | ||
<rect key="frame" x="14" y="13" width="180" height="32"/> | ||
<buttonCell key="cell" type="push" title="Rate on App Store" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="FaP-9a-HPl"> | ||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="system"/> | ||
</buttonCell> | ||
<connections> | ||
<action selector="rateOnAppStore:" target="-1" id="EsH-b0-emg"/> | ||
</connections> | ||
</button> | ||
</subviews> | ||
</customView> | ||
</objects> | ||
</document> |