Skip to content

Commit

Permalink
Added new menu icons for issue6
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcortez committed Mar 11, 2010
1 parent cd8efbf commit 8bda187
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FoursquareX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
07F934AB10CDEA3500E2631A /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07F934AA10CDEA3500E2631A /* CoreLocation.framework */; };
07FE4C8B112E10DB007AA380 /* Credits.html in Resources */ = {isa = PBXBuildFile; fileRef = 07FE4C8A112E10DB007AA380 /* Credits.html */; };
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
C3639CB61148652F001324C3 /* menu_icon_alt.png in Resources */ = {isa = PBXBuildFile; fileRef = C3639CB51148652F001324C3 /* menu_icon_alt.png */; };
F5600E971103D25800376CEC /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F5600E961103D25800376CEC /* Security.framework */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -171,6 +172,7 @@
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 /* FoursquareX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FoursquareX.app; sourceTree = BUILT_PRODUCTS_DIR; };
C3639CB51148652F001324C3 /* menu_icon_alt.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = menu_icon_alt.png; sourceTree = "<group>"; };
F5600E961103D25800376CEC /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -367,6 +369,7 @@
07A9AB4210E96D1B00CE8EC7 /* megaphone.png */,
075289C710FECE37009032C7 /* megaphone_dark.png */,
07A9AB4310E96D1B00CE8EC7 /* menu_icon.png */,
C3639CB51148652F001324C3 /* menu_icon_alt.png */,
07A9AB4410E96D1B00CE8EC7 /* reload.tiff */,
07BB4A8010D03FCA00D1A536 /* InfoPlist.strings */,
07BB4A7010D03F3800D1A536 /* FoursquareX-Info.plist */,
Expand Down Expand Up @@ -448,6 +451,7 @@
075289B510FEC428009032C7 /* foursquarex.icns in Resources */,
075289C810FECE37009032C7 /* megaphone_dark.png in Resources */,
07FE4C8B112E10DB007AA380 /* Credits.html in Resources */,
C3639CB61148652F001324C3 /* menu_icon_alt.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Binary file modified Resources/menu_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/menu_icon_alt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Source/Classes/FoursquareXAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,13 @@ - (void)finishLoading

// Show icon
NSImage *image =[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"menu_icon" ofType:@"png"]] autorelease];
NSImage *altImage =[[[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"menu_icon_alt" ofType:@"png"]] autorelease];
NSStatusBar *statusBar = [NSStatusBar systemStatusBar];
statusItem = [[statusBar statusItemWithLength:-2] retain];
[statusItem setMenu:statusItemMenu];
[statusItem setHighlightMode:YES];
[statusItem setImage:image];
[statusItem setAlternateImage:altImage];

// Listen for WiFi events
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
Expand Down
Binary file added menu_icon_alt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8bda187

Please sign in to comment.