Permalink
Browse files

An about section is nice.

  • Loading branch information...
nolanw committed Feb 13, 2011
1 parent 8ab9e66 commit 3a38e1243296d0372874f188ecd7d02e4c18944a
@@ -25,6 +25,7 @@
1CE4589A130754580033D779 /* NSIndexPath+NWHandy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE4588D130754580033D779 /* NSIndexPath+NWHandy.m */; };
1CE4589B130754580033D779 /* NSObject+NWBlockObservation.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE4588F130754580033D779 /* NSObject+NWBlockObservation.m */; };
1CE4589C130754580033D779 /* NWBox.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE45893130754580033D779 /* NWBox.m */; };
+ 1CFF0D481307AA560066D865 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 1CFF0D471307AA560066D865 /* Credits.rtf */; };
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
/* End PBXBuildFile section */
@@ -70,6 +71,7 @@
1CE45895130754580033D779 /* NWHandy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NWHandy.h; sourceTree = "<group>"; };
1CE45896130754580033D779 /* NWLog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NWLog.h; sourceTree = "<group>"; };
1CE45897130754580033D779 /* NWPrinting.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NWPrinting.h; sourceTree = "<group>"; };
+ 1CFF0D471307AA560066D865 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
8D1107320486CEB800E47090 /* Ejectulate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ejectulate.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -134,6 +136,7 @@
1CDA337D12A9C54F00412DB4 /* InfoPlist.strings */,
1CDA337F12A9C54F00412DB4 /* MainWindow.xib */,
1CE00E0312AA19350086846F /* Ejectulate.icns */,
+ 1CFF0D471307AA560066D865 /* Credits.rtf */,
);
path = Resources;
sourceTree = "<group>";
@@ -256,6 +259,7 @@
1CDA339112A9C54F00412DB4 /* InfoPlist.strings in Resources */,
1CDA339212A9C54F00412DB4 /* MainWindow.xib in Resources */,
1CE00E0412AA19350086846F /* Ejectulate.icns in Resources */,
+ 1CFF0D481307AA560066D865 /* Credits.rtf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
@@ -0,0 +1,40 @@
+{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\margl1440\margr1440\vieww9860\viewh10040\viewkind0
+\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
+
+\f0\fs24 \cf0 Ejectulate can be found at\
+{\field{\*\fldinst{HYPERLINK "http://nolanw.ca/ejectulate"}}{\fldrslt http://nolanw.ca/ejectulate}}\
+\
+Ejectulate uses ZipKit developed by Karl Moskowski.\
+{\field{\*\fldinst{HYPERLINK "http://bitbucket.org/kolpanic/zipkit/"}}{\fldrslt http://bitbucket.org/kolpanic/zipkit/}}\
+\
+Copyright (c) 2009, Karl Moskowski\
+All rights reserved.\
+\
+Redistribution and use in source and binary forms, with or without\
+modification, are permitted provided that the following conditions are\
+met:\
+\
+* Redistributions of source code must retain the above copyright\
+ notice, this list of conditions and the following disclaimer.\
+* Redistributions in binary form must reproduce the above\
+ copyright notice, this list of conditions and the following disclaimer\
+ in the documentation and/or other materials provided with the\
+ distribution.\
+* Neither the name of Karl Moskowski nor the names of its\
+ contributors may be used to endorse or promote products derived from\
+ this software without specific prior written permission.\
+\
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}
@@ -28,5 +28,7 @@
<string>NSApplication</string>
<key>LSUIElement</key>
<true/>
+ <key>NSHumanReadableCopyright</key>
+ <string>© 2011 Nolan Waite</string>
</dict>
</plist>
View
@@ -2,16 +2,17 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1060</int>
- <string key="IBDocument.SystemVersion">10H574</string>
+ <string key="IBDocument.SystemVersion">10J567</string>
<string key="IBDocument.InterfaceBuilderVersion">823</string>
<string key="IBDocument.AppKitVersion">1038.35</string>
- <string key="IBDocument.HIToolboxVersion">461.00</string>
+ <string key="IBDocument.HIToolboxVersion">462.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">823</string>
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="75"/>
<integer value="8"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
@@ -282,7 +283,6 @@
<int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{0, 99}, {255, 15}}</string>
<reference key="NSSuperview" ref="758461824"/>
- <bool key="NSEnabled">YES</bool>
<int key="NSsFlags">1</int>
<reference key="NSTarget" ref="758461824"/>
<string key="NSAction">_doScroller:</string>
@@ -292,7 +292,7 @@
<string key="NSFrameSize">{270, 114}</string>
<reference key="NSSuperview" ref="167612369"/>
<reference key="NSNextKeyView" ref="219977438"/>
- <int key="NSsFlags">688</int>
+ <int key="NSsFlags">560</int>
<reference key="NSVScroller" ref="281915980"/>
<reference key="NSHScroller" ref="145624256"/>
<reference key="NSContentView" ref="219977438"/>
@@ -377,36 +377,39 @@
<string key="NSTitle"/>
<object class="NSMutableArray" key="NSMenuItems">
<bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSMenuItem" id="711664816">
+ <object class="NSMenuItem" id="850367096">
<reference key="NSMenu" ref="659075385"/>
- <string key="NSTitle">Start on Login</string>
+ <string key="NSTitle">About Ejectulate</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
- <object class="NSCustomResource" key="NSOnImage" id="898605511">
+ <object class="NSCustomResource" key="NSOnImage" id="668508208">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSMenuCheckmark</string>
</object>
- <object class="NSCustomResource" key="NSMixedImage" id="480059031">
+ <object class="NSCustomResource" key="NSMixedImage" id="799162098">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSMenuMixedState</string>
</object>
</object>
+ <object class="NSMenuItem" id="711664816">
+ <reference key="NSMenu" ref="659075385"/>
+ <string key="NSTitle">Start on Login</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="668508208"/>
+ <reference key="NSMixedImage" ref="799162098"/>
+ </object>
<object class="NSMenuItem" id="809565938">
<reference key="NSMenu" ref="659075385"/>
<string key="NSTitle">Quit Ejectulate</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
- <reference key="NSOnImage" ref="898605511"/>
- <reference key="NSMixedImage" ref="480059031"/>
+ <reference key="NSOnImage" ref="668508208"/>
+ <reference key="NSMixedImage" ref="799162098"/>
</object>
</object>
</object>
<object class="NSUserDefaultsController" id="331053227">
- <object class="NSMutableArray" key="NSDeclaredKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>StartOnLogin</string>
- <string>StartsOnLogin</string>
- </object>
<bool key="NSSharedInstance">YES</bool>
</object>
</object>
@@ -598,6 +601,14 @@
</object>
<int key="connectionID">91</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">showAboutPanel:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="850367096"/>
+ </object>
+ <int key="connectionID">97</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -766,6 +777,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="809565938"/>
<reference ref="711664816"/>
+ <reference ref="850367096"/>
</object>
<reference key="parent" ref="0"/>
</object>
@@ -812,6 +824,11 @@
<reference key="object" ref="431108366"/>
<reference key="parent" ref="123965098"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">95</int>
+ <reference key="object" ref="850367096"/>
+ <reference key="parent" ref="659075385"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -846,6 +863,7 @@
<string>83.IBPluginDependency</string>
<string>87.IBPluginDependency</string>
<string>94.IBPluginDependency</string>
+ <string>95.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -874,7 +892,7 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>EJOutlineView</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{333, 791}, {151, 43}}</string>
+ <string>{{333, 771}, {163, 63}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -883,6 +901,7 @@
<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">
@@ -901,7 +920,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">94</int>
+ <int key="maxID">97</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -926,14 +945,35 @@
<string key="className">EJWindowController</string>
<string key="superclassName">NSWindowController</string>
<object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">showActionMenu:</string>
- <string key="NS.object.0">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>showAboutPanel:</string>
+ <string>showActionMenu:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ </object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">showActionMenu:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">showActionMenu:</string>
- <string key="candidateClassName">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>showAboutPanel:</string>
+ <string>showActionMenu:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">showAboutPanel:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">showActionMenu:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
@@ -1006,7 +1046,7 @@
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
- <string key="minorKey">lib/NSObject+BlockObservation.h</string>
+ <string key="minorKey">lib/NWHandy/NSObject+NWBlockObservation.h</string>
</object>
</object>
</object>
View
@@ -47,4 +47,7 @@
// Action for the action menu button.
- (IBAction)showActionMenu:(id)sender;
+// Hide Ejectulate window and show About window.
+- (IBAction)showAboutPanel:(id)sender;
+
@end
View
@@ -101,6 +101,12 @@ - (IBAction)showActionMenu:(id)sender
forView:button];
}
+- (IBAction)showAboutPanel:(id)sender
+{
+ [self.window performClose:self];
+ [[NSApplication sharedApplication] orderFrontStandardAboutPanel:self];
+}
+
- (CGFloat)titleBarHeight
{
NSRect frame = [self.window frame];

0 comments on commit 3a38e12

Please sign in to comment.