Thomas Buck преди 11 години
родител
ревизия
2b2cbfdfaa
променени са 11 файла, в които са добавени 114 реда и са изтрити 450 реда
  1. 21
    0
      Prefs.xib
  2. 18
    0
      RedditBar.xcodeproj/project.pbxproj
  3. 9
    1
      RedditBar/AppDelegate.h
  4. 18
    3
      RedditBar/AppDelegate.m
  5. 20
    446
      RedditBar/Base.lproj/MainMenu.xib
  6. 13
    0
      RedditBar/PrefController.h
  7. 13
    0
      RedditBar/PrefController.m
  8. 2
    0
      RedditBar/RedditBar-Info.plist
  9. Двоични данни
      RedditBar/icon-alt.png
  10. Двоични данни
      RedditBar/icon.png
  11. Двоични данни
      icon.psd

+ 21
- 0
Prefs.xib Целия файл

@@ -0,0 +1,21 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
3
+    <dependencies>
4
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
5
+    </dependencies>
6
+    <objects>
7
+        <customObject id="-2" userLabel="File's Owner" customClass="PrefController"/>
8
+        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
9
+        <customObject id="-3" userLabel="Application"/>
10
+        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" oneShot="NO" releasedWhenClosed="NO" wantsToBeColor="NO" animationBehavior="default" id="1">
11
+            <windowStyleMask key="styleMask" titled="YES" closable="YES"/>
12
+            <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
13
+            <rect key="contentRect" x="196" y="240" width="480" height="270"/>
14
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/>
15
+            <view key="contentView" id="2">
16
+                <rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
17
+                <autoresizingMask key="autoresizingMask"/>
18
+            </view>
19
+        </window>
20
+    </objects>
21
+</document>

+ 18
- 0
RedditBar.xcodeproj/project.pbxproj Целия файл

@@ -18,6 +18,10 @@
18 18
 		E9CF1F41184961020004AE02 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E9CF1F20184961010004AE02 /* Cocoa.framework */; };
19 19
 		E9CF1F49184961020004AE02 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E9CF1F47184961020004AE02 /* InfoPlist.strings */; };
20 20
 		E9CF1F4B184961020004AE02 /* RedditBarTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E9CF1F4A184961020004AE02 /* RedditBarTests.m */; };
21
+		E9CF1F561849654F0004AE02 /* icon-alt.png in Resources */ = {isa = PBXBuildFile; fileRef = E9CF1F541849654F0004AE02 /* icon-alt.png */; };
22
+		E9CF1F571849654F0004AE02 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = E9CF1F551849654F0004AE02 /* icon.png */; };
23
+		E9CF1F5C1849685C0004AE02 /* PrefController.m in Sources */ = {isa = PBXBuildFile; fileRef = E9CF1F5B1849685C0004AE02 /* PrefController.m */; };
24
+		E9CF1F5E184968DD0004AE02 /* Prefs.xib in Resources */ = {isa = PBXBuildFile; fileRef = E9CF1F5D184968DD0004AE02 /* Prefs.xib */; };
21 25
 /* End PBXBuildFile section */
22 26
 
23 27
 /* Begin PBXContainerItemProxy section */
@@ -50,6 +54,11 @@
50 54
 		E9CF1F46184961020004AE02 /* RedditBarTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "RedditBarTests-Info.plist"; sourceTree = "<group>"; };
51 55
 		E9CF1F48184961020004AE02 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
52 56
 		E9CF1F4A184961020004AE02 /* RedditBarTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RedditBarTests.m; sourceTree = "<group>"; };
57
+		E9CF1F541849654F0004AE02 /* icon-alt.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon-alt.png"; sourceTree = "<group>"; };
58
+		E9CF1F551849654F0004AE02 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = "<group>"; };
59
+		E9CF1F5A1849685C0004AE02 /* PrefController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrefController.h; sourceTree = "<group>"; };
60
+		E9CF1F5B1849685C0004AE02 /* PrefController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PrefController.m; sourceTree = "<group>"; };
61
+		E9CF1F5D184968DD0004AE02 /* Prefs.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = Prefs.xib; path = ../Prefs.xib; sourceTree = "<group>"; };
53 62
 /* End PBXFileReference section */
54 63
 
55 64
 /* Begin PBXFrameworksBuildPhase section */
@@ -115,9 +124,14 @@
115 124
 		E9CF1F26184961010004AE02 /* RedditBar */ = {
116 125
 			isa = PBXGroup;
117 126
 			children = (
127
+				E9CF1F541849654F0004AE02 /* icon-alt.png */,
128
+				E9CF1F551849654F0004AE02 /* icon.png */,
118 129
 				E9CF1F32184961010004AE02 /* AppDelegate.h */,
119 130
 				E9CF1F33184961010004AE02 /* AppDelegate.m */,
120 131
 				E9CF1F35184961020004AE02 /* MainMenu.xib */,
132
+				E9CF1F5A1849685C0004AE02 /* PrefController.h */,
133
+				E9CF1F5B1849685C0004AE02 /* PrefController.m */,
134
+				E9CF1F5D184968DD0004AE02 /* Prefs.xib */,
121 135
 				E9CF1F38184961020004AE02 /* Images.xcassets */,
122 136
 				E9CF1F27184961010004AE02 /* Supporting Files */,
123 137
 			);
@@ -230,10 +244,13 @@
230 244
 			isa = PBXResourcesBuildPhase;
231 245
 			buildActionMask = 2147483647;
232 246
 			files = (
247
+				E9CF1F5E184968DD0004AE02 /* Prefs.xib in Resources */,
233 248
 				E9CF1F2B184961010004AE02 /* InfoPlist.strings in Resources */,
234 249
 				E9CF1F39184961020004AE02 /* Images.xcassets in Resources */,
250
+				E9CF1F571849654F0004AE02 /* icon.png in Resources */,
235 251
 				E9CF1F31184961010004AE02 /* Credits.rtf in Resources */,
236 252
 				E9CF1F37184961020004AE02 /* MainMenu.xib in Resources */,
253
+				E9CF1F561849654F0004AE02 /* icon-alt.png in Resources */,
237 254
 			);
238 255
 			runOnlyForDeploymentPostprocessing = 0;
239 256
 		};
@@ -254,6 +271,7 @@
254 271
 			files = (
255 272
 				E9CF1F34184961010004AE02 /* AppDelegate.m in Sources */,
256 273
 				E9CF1F2D184961010004AE02 /* main.m in Sources */,
274
+				E9CF1F5C1849685C0004AE02 /* PrefController.m in Sources */,
257 275
 			);
258 276
 			runOnlyForDeploymentPostprocessing = 0;
259 277
 		};

+ 9
- 1
RedditBar/AppDelegate.h Целия файл

@@ -7,9 +7,17 @@
7 7
 //
8 8
 
9 9
 #import <Cocoa/Cocoa.h>
10
+#import "PrefController.h"
10 11
 
11 12
 @interface AppDelegate : NSObject <NSApplicationDelegate>
12 13
 
13
-@property (assign) IBOutlet NSWindow *window;
14
+@property (atomic, retain) IBOutlet NSMenu *statusMenu;
15
+
16
+@property (atomic, retain) NSStatusItem *statusItem;
17
+@property (atomic, retain) NSImage *statusImage;
18
+@property (atomic, retain) NSImage *statusHighlightImage;
19
+@property (atomic, retain) PrefController *prefWindow;
20
+
21
+-(IBAction)showPreferences:(id)sender;
14 22
 
15 23
 @end

+ 18
- 3
RedditBar/AppDelegate.m Целия файл

@@ -10,9 +10,24 @@
10 10
 
11 11
 @implementation AppDelegate
12 12
 
13
-- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
14
-{
15
-    // Insert code here to initialize your application
13
+@synthesize statusMenu, statusItem, statusImage, statusHighlightImage, prefWindow;
14
+
15
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
16
+    statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
17
+    NSBundle *bundle = [NSBundle mainBundle];
18
+    statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon" ofType:@"png"]];
19
+    statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon-alt" ofType:@"png"]];
20
+    [statusItem setImage:statusImage];
21
+    [statusItem setAlternateImage:statusHighlightImage];
22
+    [statusItem setMenu:statusMenu];
23
+    [statusItem setToolTip:@"Reddit Bar"];
24
+    [statusItem setHighlightMode:YES];
25
+}
26
+
27
+-(IBAction)showPreferences:(id)sender {
28
+    [NSApp activateIgnoringOtherApps:YES];
29
+    prefWindow = [[PrefController alloc] initWithWindowNibName:@"Prefs"];
30
+    [prefWindow showWindow:self];
16 31
 }
17 32
 
18 33
 @end

+ 20
- 446
RedditBar/Base.lproj/MainMenu.xib Целия файл

@@ -1,467 +1,41 @@
1 1
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4439" systemVersion="13A451" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
3 3
     <dependencies>
4
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4439"/>
4
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
5 5
     </dependencies>
6 6
     <objects>
7 7
         <customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
8 8
             <connections>
9
-                <action selector="orderFrontStandardAboutPanel:" destination="58" id="142"/>
10 9
                 <outlet property="delegate" destination="494" id="495"/>
11 10
             </connections>
12 11
         </customObject>
13
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder">
14
-            <connections>
15
-                <action selector="alignCenter:" destination="499" id="518"/>
16
-                <action selector="alignJustified:" destination="500" id="523"/>
17
-                <action selector="alignLeft:" destination="498" id="524"/>
18
-                <action selector="alignRight:" destination="501" id="521"/>
19
-                <action selector="arrangeInFront:" destination="5" id="39"/>
20
-                <action selector="capitalizeWord:" destination="466" id="467"/>
21
-                <action selector="centerSelectionInVisibleArea:" destination="210" id="245"/>
22
-                <action selector="checkSpelling:" destination="201" id="225"/>
23
-                <action selector="clearRecentDocuments:" destination="126" id="127"/>
24
-                <action selector="copy:" destination="197" id="224"/>
25
-                <action selector="copyFont:" destination="403" id="428"/>
26
-                <action selector="copyRuler:" destination="506" id="522"/>
27
-                <action selector="cut:" destination="199" id="228"/>
28
-                <action selector="delete:" destination="202" id="235"/>
29
-                <action selector="hide:" destination="134" id="367"/>
30
-                <action selector="hideOtherApplications:" destination="145" id="368"/>
31
-                <action selector="loosenKerning:" destination="419" id="435"/>
32
-                <action selector="lowerBaseline:" destination="410" id="427"/>
33
-                <action selector="lowercaseWord:" destination="465" id="468"/>
34
-                <action selector="makeBaseWritingDirectionLeftToRight:" destination="511" id="526"/>
35
-                <action selector="makeBaseWritingDirectionNatural:" destination="510" id="525"/>
36
-                <action selector="makeBaseWritingDirectionRightToLeft:" destination="512" id="527"/>
37
-                <action selector="makeTextWritingDirectionLeftToRight:" destination="516" id="529"/>
38
-                <action selector="makeTextWritingDirectionNatural:" destination="515" id="528"/>
39
-                <action selector="makeTextWritingDirectionRightToLeft:" destination="517" id="530"/>
40
-                <action selector="newDocument:" destination="82" id="373"/>
41
-                <action selector="openDocument:" destination="72" id="374"/>
42
-                <action selector="orderFrontColorPanel:" destination="401" id="433"/>
43
-                <action selector="orderFrontSubstitutionsPanel:" destination="457" id="458"/>
44
-                <action selector="paste:" destination="203" id="226"/>
45
-                <action selector="pasteAsPlainText:" destination="485" id="486"/>
46
-                <action selector="pasteFont:" destination="404" id="436"/>
47
-                <action selector="pasteRuler:" destination="507" id="519"/>
48
-                <action selector="performClose:" destination="73" id="193"/>
49
-                <action selector="performFindPanelAction:" destination="209" id="241"/>
50
-                <action selector="performFindPanelAction:" destination="208" id="487"/>
51
-                <action selector="performFindPanelAction:" destination="213" id="488"/>
52
-                <action selector="performFindPanelAction:" destination="221" id="489"/>
53
-                <action selector="performFindPanelAction:" destination="534" id="535"/>
54
-                <action selector="performMiniaturize:" destination="23" id="37"/>
55
-                <action selector="performZoom:" destination="239" id="240"/>
56
-                <action selector="print:" destination="78" id="86"/>
57
-                <action selector="raiseBaseline:" destination="409" id="426"/>
58
-                <action selector="redo:" destination="215" id="231"/>
59
-                <action selector="revertDocumentToSaved:" destination="112" id="364"/>
60
-                <action selector="runPageLayout:" destination="77" id="87"/>
61
-                <action selector="runToolbarCustomizationPalette:" destination="298" id="365"/>
62
-                <action selector="saveDocument:" destination="75" id="362"/>
63
-                <action selector="selectAll:" destination="198" id="232"/>
64
-                <action selector="showGuessPanel:" destination="204" id="230"/>
65
-                <action selector="showHelp:" destination="492" id="493"/>
66
-                <action selector="startSpeaking:" destination="196" id="233"/>
67
-                <action selector="stopSpeaking:" destination="195" id="227"/>
68
-                <action selector="subscript:" destination="408" id="429"/>
69
-                <action selector="superscript:" destination="407" id="430"/>
70
-                <action selector="tightenKerning:" destination="418" id="431"/>
71
-                <action selector="toggleAutomaticDashSubstitution:" destination="460" id="461"/>
72
-                <action selector="toggleAutomaticLinkDetection:" destination="354" id="357"/>
73
-                <action selector="toggleAutomaticQuoteSubstitution:" destination="351" id="356"/>
74
-                <action selector="toggleAutomaticSpellingCorrection:" destination="454" id="456"/>
75
-                <action selector="toggleAutomaticTextReplacement:" destination="462" id="463"/>
76
-                <action selector="toggleContinuousSpellChecking:" destination="219" id="222"/>
77
-                <action selector="toggleGrammarChecking:" destination="346" id="347"/>
78
-                <action selector="toggleRuler:" destination="505" id="520"/>
79
-                <action selector="toggleSmartInsertDelete:" destination="350" id="355"/>
80
-                <action selector="toggleToolbarShown:" destination="297" id="366"/>
81
-                <action selector="turnOffKerning:" destination="417" id="441"/>
82
-                <action selector="turnOffLigatures:" destination="413" id="440"/>
83
-                <action selector="underline:" destination="392" id="432"/>
84
-                <action selector="undo:" destination="207" id="223"/>
85
-                <action selector="unhideAllApplications:" destination="150" id="370"/>
86
-                <action selector="unscript:" destination="406" id="437"/>
87
-                <action selector="uppercaseWord:" destination="452" id="464"/>
88
-                <action selector="useAllLigatures:" destination="414" id="434"/>
89
-                <action selector="useStandardKerning:" destination="416" id="438"/>
90
-                <action selector="useStandardLigatures:" destination="412" id="439"/>
91
-            </connections>
92
-        </customObject>
93
-        <customObject id="-3" userLabel="Application">
12
+        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
13
+        <customObject id="-3" userLabel="Application"/>
14
+        <customObject id="494" customClass="AppDelegate">
94 15
             <connections>
95
-                <action selector="terminate:" destination="136" id="449"/>
16
+                <outlet property="statusMenu" destination="fuB-VS-nSq" id="AZY-3d-h8G"/>
96 17
             </connections>
97 18
         </customObject>
98
-        <menu title="AMainMenu" systemMenu="main" id="29">
19
+        <customObject id="420" customClass="NSFontManager"/>
20
+        <menu id="fuB-VS-nSq" userLabel="StatusItem">
99 21
             <items>
100
-                <menuItem title="RedditBar" id="56">
101
-                    <menu key="submenu" title="RedditBar" systemMenu="apple" id="57">
102
-                        <items>
103
-                            <menuItem title="About RedditBar" id="58">
104
-                                <modifierMask key="keyEquivalentModifierMask"/>
105
-                            </menuItem>
106
-                            <menuItem isSeparatorItem="YES" id="236">
107
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
108
-                            </menuItem>
109
-                            <menuItem title="Preferences…" keyEquivalent="," id="129"/>
110
-                            <menuItem isSeparatorItem="YES" id="143">
111
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
112
-                            </menuItem>
113
-                            <menuItem title="Services" id="131">
114
-                                <menu key="submenu" title="Services" systemMenu="services" id="130"/>
115
-                            </menuItem>
116
-                            <menuItem isSeparatorItem="YES" id="144">
117
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
118
-                            </menuItem>
119
-                            <menuItem title="Hide RedditBar" keyEquivalent="h" id="134"/>
120
-                            <menuItem title="Hide Others" keyEquivalent="h" id="145">
121
-                                <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
122
-                            </menuItem>
123
-                            <menuItem title="Show All" id="150"/>
124
-                            <menuItem isSeparatorItem="YES" id="149">
125
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
126
-                            </menuItem>
127
-                            <menuItem title="Quit RedditBar" keyEquivalent="q" id="136"/>
128
-                        </items>
129
-                    </menu>
130
-                </menuItem>
131
-                <menuItem title="File" id="83">
132
-                    <menu key="submenu" title="File" id="81">
133
-                        <items>
134
-                            <menuItem title="New" keyEquivalent="n" id="82"/>
135
-                            <menuItem title="Open…" keyEquivalent="o" id="72"/>
136
-                            <menuItem title="Open Recent" id="124">
137
-                                <menu key="submenu" title="Open Recent" systemMenu="recentDocuments" id="125">
138
-                                    <items>
139
-                                        <menuItem title="Clear Menu" id="126"/>
140
-                                    </items>
141
-                                </menu>
142
-                            </menuItem>
143
-                            <menuItem isSeparatorItem="YES" id="79">
144
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
145
-                            </menuItem>
146
-                            <menuItem title="Close" keyEquivalent="w" id="73"/>
147
-                            <menuItem title="Save…" keyEquivalent="s" id="75"/>
148
-                            <menuItem title="Revert to Saved" id="112">
149
-                                <modifierMask key="keyEquivalentModifierMask"/>
150
-                            </menuItem>
151
-                            <menuItem isSeparatorItem="YES" id="74">
152
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
153
-                            </menuItem>
154
-                            <menuItem title="Page Setup..." keyEquivalent="P" id="77">
155
-                                <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
156
-                            </menuItem>
157
-                            <menuItem title="Print…" keyEquivalent="p" id="78"/>
158
-                        </items>
159
-                    </menu>
160
-                </menuItem>
161
-                <menuItem title="Edit" id="217">
162
-                    <menu key="submenu" title="Edit" id="205">
163
-                        <items>
164
-                            <menuItem title="Undo" keyEquivalent="z" id="207"/>
165
-                            <menuItem title="Redo" keyEquivalent="Z" id="215">
166
-                                <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
167
-                            </menuItem>
168
-                            <menuItem isSeparatorItem="YES" id="206">
169
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
170
-                            </menuItem>
171
-                            <menuItem title="Cut" keyEquivalent="x" id="199"/>
172
-                            <menuItem title="Copy" keyEquivalent="c" id="197"/>
173
-                            <menuItem title="Paste" keyEquivalent="v" id="203"/>
174
-                            <menuItem title="Paste and Match Style" keyEquivalent="V" id="485">
175
-                                <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
176
-                            </menuItem>
177
-                            <menuItem title="Delete" id="202"/>
178
-                            <menuItem title="Select All" keyEquivalent="a" id="198"/>
179
-                            <menuItem isSeparatorItem="YES" id="214">
180
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
181
-                            </menuItem>
182
-                            <menuItem title="Find" id="218">
183
-                                <menu key="submenu" title="Find" id="220">
184
-                                    <items>
185
-                                        <menuItem title="Find…" tag="1" keyEquivalent="f" id="209"/>
186
-                                        <menuItem title="Find and Replace…" tag="12" keyEquivalent="f" id="534">
187
-                                            <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
188
-                                        </menuItem>
189
-                                        <menuItem title="Find Next" tag="2" keyEquivalent="g" id="208"/>
190
-                                        <menuItem title="Find Previous" tag="3" keyEquivalent="G" id="213">
191
-                                            <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
192
-                                        </menuItem>
193
-                                        <menuItem title="Use Selection for Find" tag="7" keyEquivalent="e" id="221"/>
194
-                                        <menuItem title="Jump to Selection" keyEquivalent="j" id="210"/>
195
-                                    </items>
196
-                                </menu>
197
-                            </menuItem>
198
-                            <menuItem title="Spelling and Grammar" id="216">
199
-                                <menu key="submenu" title="Spelling and Grammar" id="200">
200
-                                    <items>
201
-                                        <menuItem title="Show Spelling and Grammar" keyEquivalent=":" id="204"/>
202
-                                        <menuItem title="Check Document Now" keyEquivalent=";" id="201"/>
203
-                                        <menuItem isSeparatorItem="YES" id="453"/>
204
-                                        <menuItem title="Check Spelling While Typing" id="219"/>
205
-                                        <menuItem title="Check Grammar With Spelling" id="346"/>
206
-                                        <menuItem title="Correct Spelling Automatically" id="454">
207
-                                            <modifierMask key="keyEquivalentModifierMask"/>
208
-                                        </menuItem>
209
-                                    </items>
210
-                                </menu>
211
-                            </menuItem>
212
-                            <menuItem title="Substitutions" id="348">
213
-                                <menu key="submenu" title="Substitutions" id="349">
214
-                                    <items>
215
-                                        <menuItem title="Show Substitutions" id="457">
216
-                                            <modifierMask key="keyEquivalentModifierMask"/>
217
-                                        </menuItem>
218
-                                        <menuItem isSeparatorItem="YES" id="459"/>
219
-                                        <menuItem title="Smart Copy/Paste" tag="1" keyEquivalent="f" id="350"/>
220
-                                        <menuItem title="Smart Quotes" tag="2" keyEquivalent="g" id="351"/>
221
-                                        <menuItem title="Smart Dashes" id="460">
222
-                                            <modifierMask key="keyEquivalentModifierMask"/>
223
-                                        </menuItem>
224
-                                        <menuItem title="Smart Links" tag="3" keyEquivalent="G" id="354">
225
-                                            <modifierMask key="keyEquivalentModifierMask" shift="YES" command="YES"/>
226
-                                        </menuItem>
227
-                                        <menuItem title="Text Replacement" id="462">
228
-                                            <modifierMask key="keyEquivalentModifierMask"/>
229
-                                        </menuItem>
230
-                                    </items>
231
-                                </menu>
232
-                            </menuItem>
233
-                            <menuItem title="Transformations" id="450">
234
-                                <modifierMask key="keyEquivalentModifierMask"/>
235
-                                <menu key="submenu" title="Transformations" id="451">
236
-                                    <items>
237
-                                        <menuItem title="Make Upper Case" id="452">
238
-                                            <modifierMask key="keyEquivalentModifierMask"/>
239
-                                        </menuItem>
240
-                                        <menuItem title="Make Lower Case" id="465">
241
-                                            <modifierMask key="keyEquivalentModifierMask"/>
242
-                                        </menuItem>
243
-                                        <menuItem title="Capitalize" id="466">
244
-                                            <modifierMask key="keyEquivalentModifierMask"/>
245
-                                        </menuItem>
246
-                                    </items>
247
-                                </menu>
248
-                            </menuItem>
249
-                            <menuItem title="Speech" id="211">
250
-                                <menu key="submenu" title="Speech" id="212">
251
-                                    <items>
252
-                                        <menuItem title="Start Speaking" id="196"/>
253
-                                        <menuItem title="Stop Speaking" id="195"/>
254
-                                    </items>
255
-                                </menu>
256
-                            </menuItem>
257
-                        </items>
258
-                    </menu>
259
-                </menuItem>
260
-                <menuItem title="Format" id="375">
22
+                <menuItem title="Loading..." enabled="NO" id="jfb-mv-iN9">
261 23
                     <modifierMask key="keyEquivalentModifierMask"/>
262
-                    <menu key="submenu" title="Format" id="376">
263
-                        <items>
264
-                            <menuItem title="Font" id="377">
265
-                                <modifierMask key="keyEquivalentModifierMask"/>
266
-                                <menu key="submenu" title="Font" systemMenu="font" id="388">
267
-                                    <items>
268
-                                        <menuItem title="Show Fonts" keyEquivalent="t" id="389"/>
269
-                                        <menuItem title="Bold" tag="2" keyEquivalent="b" id="390"/>
270
-                                        <menuItem title="Italic" tag="1" keyEquivalent="i" id="391"/>
271
-                                        <menuItem title="Underline" keyEquivalent="u" id="392"/>
272
-                                        <menuItem isSeparatorItem="YES" id="393"/>
273
-                                        <menuItem title="Bigger" tag="3" keyEquivalent="+" id="394"/>
274
-                                        <menuItem title="Smaller" tag="4" keyEquivalent="-" id="395"/>
275
-                                        <menuItem isSeparatorItem="YES" id="396"/>
276
-                                        <menuItem title="Kern" id="397">
277
-                                            <modifierMask key="keyEquivalentModifierMask"/>
278
-                                            <menu key="submenu" title="Kern" id="415">
279
-                                                <items>
280
-                                                    <menuItem title="Use Default" id="416">
281
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
282
-                                                    </menuItem>
283
-                                                    <menuItem title="Use None" id="417">
284
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
285
-                                                    </menuItem>
286
-                                                    <menuItem title="Tighten" id="418">
287
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
288
-                                                    </menuItem>
289
-                                                    <menuItem title="Loosen" id="419">
290
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
291
-                                                    </menuItem>
292
-                                                </items>
293
-                                            </menu>
294
-                                        </menuItem>
295
-                                        <menuItem title="Ligatures" id="398">
296
-                                            <modifierMask key="keyEquivalentModifierMask"/>
297
-                                            <menu key="submenu" title="Ligatures" id="411">
298
-                                                <items>
299
-                                                    <menuItem title="Use Default" id="412">
300
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
301
-                                                    </menuItem>
302
-                                                    <menuItem title="Use None" id="413">
303
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
304
-                                                    </menuItem>
305
-                                                    <menuItem title="Use All" id="414">
306
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
307
-                                                    </menuItem>
308
-                                                </items>
309
-                                            </menu>
310
-                                        </menuItem>
311
-                                        <menuItem title="Baseline" id="399">
312
-                                            <modifierMask key="keyEquivalentModifierMask"/>
313
-                                            <menu key="submenu" title="Baseline" id="405">
314
-                                                <items>
315
-                                                    <menuItem title="Use Default" id="406">
316
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
317
-                                                    </menuItem>
318
-                                                    <menuItem title="Superscript" id="407">
319
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
320
-                                                    </menuItem>
321
-                                                    <menuItem title="Subscript" id="408">
322
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
323
-                                                    </menuItem>
324
-                                                    <menuItem title="Raise" id="409">
325
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
326
-                                                    </menuItem>
327
-                                                    <menuItem title="Lower" id="410">
328
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
329
-                                                    </menuItem>
330
-                                                </items>
331
-                                            </menu>
332
-                                        </menuItem>
333
-                                        <menuItem isSeparatorItem="YES" id="400"/>
334
-                                        <menuItem title="Show Colors" keyEquivalent="C" id="401"/>
335
-                                        <menuItem isSeparatorItem="YES" id="402"/>
336
-                                        <menuItem title="Copy Style" keyEquivalent="c" id="403">
337
-                                            <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
338
-                                        </menuItem>
339
-                                        <menuItem title="Paste Style" keyEquivalent="v" id="404">
340
-                                            <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
341
-                                        </menuItem>
342
-                                    </items>
343
-                                </menu>
344
-                            </menuItem>
345
-                            <menuItem title="Text" id="496">
346
-                                <modifierMask key="keyEquivalentModifierMask"/>
347
-                                <menu key="submenu" title="Text" id="497">
348
-                                    <items>
349
-                                        <menuItem title="Align Left" keyEquivalent="{" id="498"/>
350
-                                        <menuItem title="Center" keyEquivalent="|" id="499"/>
351
-                                        <menuItem title="Justify" id="500">
352
-                                            <modifierMask key="keyEquivalentModifierMask"/>
353
-                                        </menuItem>
354
-                                        <menuItem title="Align Right" keyEquivalent="}" id="501"/>
355
-                                        <menuItem isSeparatorItem="YES" id="502"/>
356
-                                        <menuItem title="Writing Direction" id="503">
357
-                                            <modifierMask key="keyEquivalentModifierMask"/>
358
-                                            <menu key="submenu" title="Writing Direction" id="508">
359
-                                                <items>
360
-                                                    <menuItem title="Paragraph" enabled="NO" id="509">
361
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
362
-                                                    </menuItem>
363
-                                                    <menuItem id="510">
364
-                                                        <string key="title">	Default</string>
365
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
366
-                                                    </menuItem>
367
-                                                    <menuItem id="511">
368
-                                                        <string key="title">	Left to Right</string>
369
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
370
-                                                    </menuItem>
371
-                                                    <menuItem id="512">
372
-                                                        <string key="title">	Right to Left</string>
373
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
374
-                                                    </menuItem>
375
-                                                    <menuItem isSeparatorItem="YES" id="513"/>
376
-                                                    <menuItem title="Selection" enabled="NO" id="514">
377
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
378
-                                                    </menuItem>
379
-                                                    <menuItem id="515">
380
-                                                        <string key="title">	Default</string>
381
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
382
-                                                    </menuItem>
383
-                                                    <menuItem id="516">
384
-                                                        <string key="title">	Left to Right</string>
385
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
386
-                                                    </menuItem>
387
-                                                    <menuItem id="517">
388
-                                                        <string key="title">	Right to Left</string>
389
-                                                        <modifierMask key="keyEquivalentModifierMask"/>
390
-                                                    </menuItem>
391
-                                                </items>
392
-                                            </menu>
393
-                                        </menuItem>
394
-                                        <menuItem isSeparatorItem="YES" id="504"/>
395
-                                        <menuItem title="Show Ruler" id="505">
396
-                                            <modifierMask key="keyEquivalentModifierMask"/>
397
-                                        </menuItem>
398
-                                        <menuItem title="Copy Ruler" keyEquivalent="c" id="506">
399
-                                            <modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
400
-                                        </menuItem>
401
-                                        <menuItem title="Paste Ruler" keyEquivalent="v" id="507">
402
-                                            <modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
403
-                                        </menuItem>
404
-                                    </items>
405
-                                </menu>
406
-                            </menuItem>
407
-                        </items>
408
-                    </menu>
409
-                </menuItem>
410
-                <menuItem title="View" id="295">
411
-                    <menu key="submenu" title="View" id="296">
412
-                        <items>
413
-                            <menuItem title="Show Toolbar" keyEquivalent="t" id="297">
414
-                                <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
415
-                            </menuItem>
416
-                            <menuItem title="Customize Toolbar…" id="298"/>
417
-                        </items>
418
-                    </menu>
419 24
                 </menuItem>
420
-                <menuItem title="Window" id="19">
421
-                    <menu key="submenu" title="Window" systemMenu="window" id="24">
422
-                        <items>
423
-                            <menuItem title="Minimize" keyEquivalent="m" id="23"/>
424
-                            <menuItem title="Zoom" id="239"/>
425
-                            <menuItem isSeparatorItem="YES" id="92">
426
-                                <modifierMask key="keyEquivalentModifierMask" command="YES"/>
427
-                            </menuItem>
428
-                            <menuItem title="Bring All to Front" id="5"/>
429
-                        </items>
430
-                    </menu>
25
+                <menuItem isSeparatorItem="YES" id="7Rc-fG-5uQ"/>
26
+                <menuItem title="Preferences" id="1lW-9C-xt6">
27
+                    <modifierMask key="keyEquivalentModifierMask"/>
28
+                    <connections>
29
+                        <action selector="showPreferences:" target="494" id="Fen-Ci-4tc"/>
30
+                    </connections>
431 31
                 </menuItem>
432
-                <menuItem title="Help" id="490">
32
+                <menuItem title="Quit" id="710-jT-UTj">
433 33
                     <modifierMask key="keyEquivalentModifierMask"/>
434
-                    <menu key="submenu" title="Help" systemMenu="help" id="491">
435
-                        <items>
436
-                            <menuItem title="RedditBar Help" keyEquivalent="?" id="492"/>
437
-                        </items>
438
-                    </menu>
34
+                    <connections>
35
+                        <action selector="terminate:" target="-1" id="xXG-pT-ly4"/>
36
+                    </connections>
439 37
                 </menuItem>
440 38
             </items>
441 39
         </menu>
442
-        <window title="RedditBar" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="371">
443
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
444
-            <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
445
-            <rect key="contentRect" x="335" y="390" width="480" height="360"/>
446
-            <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
447
-            <view key="contentView" id="372">
448
-                <rect key="frame" x="0.0" y="0.0" width="480" height="360"/>
449
-                <autoresizingMask key="autoresizingMask"/>
450
-            </view>
451
-        </window>
452
-        <customObject id="494" customClass="AppDelegate">
453
-            <connections>
454
-                <outlet property="window" destination="371" id="532"/>
455
-            </connections>
456
-        </customObject>
457
-        <customObject id="420" customClass="NSFontManager">
458
-            <connections>
459
-                <action selector="addFontTrait:" destination="390" id="421"/>
460
-                <action selector="addFontTrait:" destination="391" id="422"/>
461
-                <action selector="modifyFont:" destination="395" id="423"/>
462
-                <action selector="modifyFont:" destination="394" id="425"/>
463
-                <action selector="orderFrontFontPanel:" destination="389" id="424"/>
464
-            </connections>
465
-        </customObject>
466 40
     </objects>
467
-</document>
41
+</document>

+ 13
- 0
RedditBar/PrefController.h Целия файл

@@ -0,0 +1,13 @@
1
+//
2
+//  PrefController.h
3
+//  RedditBar
4
+//
5
+//  Created by Thomas Buck on 30.11.13.
6
+//  Copyright (c) 2013 xythobuz. All rights reserved.
7
+//
8
+
9
+#import <Foundation/Foundation.h>
10
+
11
+@interface PrefController : NSWindowController
12
+
13
+@end

+ 13
- 0
RedditBar/PrefController.m Целия файл

@@ -0,0 +1,13 @@
1
+//
2
+//  PrefController.m
3
+//  RedditBar
4
+//
5
+//  Created by Thomas Buck on 30.11.13.
6
+//  Copyright (c) 2013 xythobuz. All rights reserved.
7
+//
8
+
9
+#import "PrefController.h"
10
+
11
+@implementation PrefController
12
+
13
+@end

+ 2
- 0
RedditBar/RedditBar-Info.plist Целия файл

@@ -26,6 +26,8 @@
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>
28 28
 	<string>${MACOSX_DEPLOYMENT_TARGET}</string>
29
+	<key>LSUIElement</key>
30
+	<true/>
29 31
 	<key>NSHumanReadableCopyright</key>
30 32
 	<string>Copyright © 2013 xythobuz. All rights reserved.</string>
31 33
 	<key>NSMainNibFile</key>

Двоични данни
RedditBar/icon-alt.png Целия файл


Двоични данни
RedditBar/icon.png Целия файл


Двоични данни
icon.psd Целия файл


Loading…
Отказ
Запис