Permalink
Browse files

Use the standard about dialog

Uncovered bug in Cocoa About box where it won't show your application icon
if your icns file filename has more than one "." in it.
  • Loading branch information...
1 parent da55dfa commit 64caa88afa43bf7f0eabc999d0804efceeb09d2a @mxcl committed Jul 9, 2009
File renamed without changes.
@@ -13,11 +13,12 @@
63024AEC0F9640A8001B8E9B /* Mediator.m in Sources */ = {isa = PBXBuildFile; fileRef = 63024AEB0F9640A8001B8E9B /* Mediator.m */; };
630EF82F1004ACC200EB28C2 /* AutoDash.m in Sources */ = {isa = PBXBuildFile; fileRef = 630EF82E1004ACC200EB28C2 /* AutoDash.m */; };
630EF8391004B61300EB28C2 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 630EF8381004B61300EB28C2 /* IOKit.framework */; };
+ 632B2001100624150009A0B7 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 632B2000100624150009A0B7 /* Credits.rtf */; };
637F074E0FAF20AD006EE129 /* ScriptingBridge.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 637F074D0FAF20AD006EE129 /* ScriptingBridge.framework */; };
63906F0C0F9DE71E00797A14 /* ShareWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 63906F0B0F9DE71E00797A14 /* ShareWindow.xib */; };
63B5AA390F93565500DC9D8C /* md5.c in Sources */ = {isa = PBXBuildFile; fileRef = 63B5AA380F93565500DC9D8C /* md5.c */; };
63B5AA5E0F9356DD00DC9D8C /* Audioscrobbler.sdef in Resources */ = {isa = PBXBuildFile; fileRef = 63B5AA5D0F9356DD00DC9D8C /* Audioscrobbler.sdef */; };
- 63C9B94A0F8672940065ED7F /* Last.fm.icns in Resources */ = {isa = PBXBuildFile; fileRef = 63C9B9490F8672940065ED7F /* Last.fm.icns */; };
+ 63C9B94A0F8672940065ED7F /* Audioscrobbler.icns in Resources */ = {isa = PBXBuildFile; fileRef = 63C9B9490F8672940065ED7F /* Audioscrobbler.icns */; };
63C9B9630F867C460065ED7F /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63C9B9620F867C460065ED7F /* Security.framework */; };
63CDD71A0F9533C800D69723 /* relay.c in Sources */ = {isa = PBXBuildFile; fileRef = 63CDD7190F9533C800D69723 /* relay.c */; };
63D1D09F0F97FDB3004FBC05 /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63D1D09E0F97FDB3004FBC05 /* Growl.framework */; };
@@ -64,12 +65,13 @@
630EF82D1004ACC200EB28C2 /* AutoDash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AutoDash.h; sourceTree = "<group>"; };
630EF82E1004ACC200EB28C2 /* AutoDash.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AutoDash.m; sourceTree = "<group>"; };
630EF8381004B61300EB28C2 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = "<absolute>"; };
+ 632B2000100624150009A0B7 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
637F07050FAF180F006EE129 /* iTunes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTunes.h; sourceTree = "<group>"; };
637F074D0FAF20AD006EE129 /* ScriptingBridge.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ScriptingBridge.framework; path = /System/Library/Frameworks/ScriptingBridge.framework; sourceTree = "<absolute>"; };
63906F0B0F9DE71E00797A14 /* ShareWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ShareWindow.xib; sourceTree = "<group>"; };
63B5AA380F93565500DC9D8C /* md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = md5.c; path = scrobsub/md5.c; sourceTree = "<group>"; };
63B5AA5D0F9356DD00DC9D8C /* Audioscrobbler.sdef */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.sdef; path = Audioscrobbler.sdef; sourceTree = "<group>"; };
- 63C9B9490F8672940065ED7F /* Last.fm.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Last.fm.icns; sourceTree = "<group>"; };
+ 63C9B9490F8672940065ED7F /* Audioscrobbler.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Audioscrobbler.icns; sourceTree = "<group>"; };
63C9B9620F867C460065ED7F /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = /System/Library/Frameworks/Security.framework; sourceTree = "<absolute>"; };
63CDD7190F9533C800D69723 /* relay.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = relay.c; path = scrobsub/relay.c; sourceTree = "<group>"; };
63D1D09E0F97FDB3004FBC05 /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Growl.framework; sourceTree = "<group>"; };
@@ -184,7 +186,8 @@
29B97317FDCFA39411CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
- 63C9B9490F8672940065ED7F /* Last.fm.icns */,
+ 632B2000100624150009A0B7 /* Credits.rtf */,
+ 63C9B9490F8672940065ED7F /* Audioscrobbler.icns */,
63D6DB360F8399E000F4DCAA /* icon.png */,
63D6DB370F8399E000F4DCAA /* inverted_icon.png */,
8D1107310486CEB800E47090 /* Info.plist */,
@@ -265,10 +268,11 @@
1DDD58160DA1D0A300B32029 /* main.xib in Resources */,
63D6DB380F8399E000F4DCAA /* icon.png in Resources */,
63D6DB390F8399E000F4DCAA /* inverted_icon.png in Resources */,
- 63C9B94A0F8672940065ED7F /* Last.fm.icns in Resources */,
+ 63C9B94A0F8672940065ED7F /* Audioscrobbler.icns in Resources */,
63B5AA5E0F9356DD00DC9D8C /* Audioscrobbler.sdef in Resources */,
63D1D0DB0F980171004FBC05 /* Growl Registration Ticket.growlRegDict in Resources */,
63906F0C0F9DE71E00797A14 /* ShareWindow.xib in Resources */,
+ 632B2001100624150009A0B7 /* Credits.rtf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
@@ -0,0 +1,9 @@
+{\rtf1\ansi\deff0
+{\fonttbl{\f0 Lucida Grande;}}
+{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
+\qc
+\fs22 Minimalist branch\line\fs12\line
+\fs24
+{\field{\*\fldinst{HYPERLINK "http://twitter.com/mxcl"}}{\fldrslt{@mxcl}}}\line
+{\field{\*\fldinst{HYPERLINK "http://github.com/mxcl/lastfm-cocoa"}}{\fldrslt{Fork it at GitHub}}}
+}
View
@@ -8,7 +8,7 @@
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="503"/>
+ <integer value="506"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -204,6 +204,24 @@
<reference key="NSOnImage" ref="794915978"/>
<reference key="NSMixedImage" ref="273203663"/>
</object>
+ <object class="NSMenuItem" id="342059166">
+ <reference key="NSMenu" ref="75340798"/>
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="794915978"/>
+ <reference key="NSMixedImage" ref="273203663"/>
+ </object>
+ <object class="NSMenuItem" id="999997141">
+ <reference key="NSMenu" ref="75340798"/>
+ <string key="NSTitle">About Audioscrobbler</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="794915978"/>
+ <reference key="NSMixedImage" ref="273203663"/>
+ </object>
</object>
</object>
</object>
@@ -367,6 +385,14 @@
</object>
<int key="connectionID">504</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">about:</string>
+ <reference key="source" ref="1050762845"/>
+ <reference key="destination" ref="999997141"/>
+ </object>
+ <int key="connectionID">508</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -530,6 +556,8 @@
<reference ref="1026732470"/>
<reference ref="700961517"/>
<reference ref="451006525"/>
+ <reference ref="342059166"/>
+ <reference ref="999997141"/>
</object>
<reference key="parent" ref="450328247"/>
</object>
@@ -573,6 +601,16 @@
<reference key="object" ref="451006525"/>
<reference key="parent" ref="75340798"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">505</int>
+ <reference key="object" ref="342059166"/>
+ <reference key="parent" ref="75340798"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">506</int>
+ <reference key="object" ref="999997141"/>
+ <reference key="parent" ref="75340798"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -611,6 +649,8 @@
<string>501.IBPluginDependency</string>
<string>502.IBPluginDependency</string>
<string>503.IBPluginDependency</string>
+ <string>505.IBPluginDependency</string>
+ <string>506.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -637,7 +677,9 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{364, 933}, {411, 103}}</string>
+ <string>{{364, 903}, {411, 133}}</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>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -668,7 +710,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">504</int>
+ <int key="maxID">508</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -708,6 +750,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>about:</string>
<string>activateAutoDash:</string>
<string>installDashboardWidget:</string>
<string>love:</string>
@@ -723,6 +766,7 @@
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
View
@@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
- <string>Last.fm</string>
+ <string>Audioscrobbler</string>
<key>CFBundleIdentifier</key>
<string>fm.last.Audioscrobbler</string>
<key>CFBundleInfoDictionaryVersion</key>
@@ -20,6 +20,10 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>0.9.1</string>
+ <key>CFBundleGetInfoString</key>
+ <string>Audioscrobbler (minimalist branch)</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>© Last.fm, Max Howell, 2009</string>
<key>NSAppleScriptEnabled</key>
<true/>
<key>NSMainNibFile</key>
@@ -28,6 +32,8 @@
<string>NSApplication</string>
<key>LSUIElement</key>
<true/>
+ <key>LSMinimumSystemVersion</key>
+ <string>10.5.0</string>
<key>SUEnableAutomaticChecks</key>
<true/>
<key>SUAllowsAutomaticUpdates</key>
View
@@ -38,6 +38,7 @@
-(IBAction)startAtLogin:(id)sender;
-(IBAction)installDashboardWidget:(id)sender;
-(IBAction)activateAutoDash:(id)sender;
+-(IBAction)about:(id)sender;
@end
View
@@ -312,6 +312,14 @@ -(IBAction)activateAutoDash:(id)sender
[autodash release];
}
+-(IBAction)about:(id)sender
+{
+ // http://www.cocoadev.com/index.pl?NSStatusItem
+ // LSUIElement screws up Window ordering
+ [NSApp activateIgnoringOtherApps:YES];
+ [NSApp orderFrontStandardAboutPanel:sender];
+}
+
@end

0 comments on commit 64caa88

Please sign in to comment.