From 3dd178a69dc8a886458795bca34409ed902cd31f Mon Sep 17 00:00:00 2001 From: Andrea D'Amore Date: Tue, 21 Jun 2011 15:17:29 +0200 Subject: [PATCH] fixes warnings while building: Growl bridging protocol, menu delegate, nonexistent framework search path, parser.j compiling --- Tools/xcodecapp-cocoa/AppController.h | 5 +++-- Tools/xcodecapp-cocoa/AppController.m | 5 ++++- Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.h | 18 ++++++++++++++++++ Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.m | 14 ++++++++++++++ .../xcodecapp-cocoa.xcodeproj/project.pbxproj | 9 ++++++--- 5 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.h create mode 100644 Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.m diff --git a/Tools/xcodecapp-cocoa/AppController.h b/Tools/xcodecapp-cocoa/AppController.h index d42382e66..64c5db989 100644 --- a/Tools/xcodecapp-cocoa/AppController.h +++ b/Tools/xcodecapp-cocoa/AppController.h @@ -17,9 +17,9 @@ */ #import -#import +#import "PRHEmptyGrowlDelegate.h" -@interface AppController : NSObject +@interface AppController : NSObject { IBOutlet NSTextField *labelStatus; IBOutlet NSTextField *labelPath; @@ -55,6 +55,7 @@ NSImage *_iconActive; NSStatusItem *_statusItem; NSString *_profilePath; + PRHEmptyGrowlDelegate *growlDelegateRef; } - (void)registerDefaults; diff --git a/Tools/xcodecapp-cocoa/AppController.m b/Tools/xcodecapp-cocoa/AppController.m index 5fe81a6ab..31c0630e1 100644 --- a/Tools/xcodecapp-cocoa/AppController.m +++ b/Tools/xcodecapp-cocoa/AppController.m @@ -44,7 +44,10 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, void *userData, size_t n if (self) { - [GrowlApplicationBridge setGrowlDelegate:@""]; + if (!growlDelegateRef) { + growlDelegateRef = [[[PRHEmptyGrowlDelegate alloc] init] autorelease]; + } + [GrowlApplicationBridge setGrowlDelegate:growlDelegateRef]; fm = [NSFileManager defaultManager]; modifiedSources = [NSMutableArray new]; diff --git a/Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.h b/Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.h new file mode 100644 index 000000000..9e516f08b --- /dev/null +++ b/Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.h @@ -0,0 +1,18 @@ +// +// PRHEmptyGrowlDelegate.h +// xcodecapp-cocoa +// +// Created by Andrea D'Amore on 19/06/11. +// Copyright 2011 by author. All rights reserved. +// +// taken from +// http://groups.google.com/group/growl-development/browse_thread/thread/6b0c3fb9fa31f765 + +#import +#import + +@interface PRHEmptyGrowlDelegate : NSObject { + +} + +@end diff --git a/Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.m b/Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.m new file mode 100644 index 000000000..76dc231dc --- /dev/null +++ b/Tools/xcodecapp-cocoa/PRHEmptyGrowlDelegate.m @@ -0,0 +1,14 @@ +// +// PRHEmptyGrowlDelegate.h +// xcodecapp-cocoa +// +// Created by Andrea D'Amore on 19/06/11. +// Copyright 2011 by author. All rights reserved. +// + +#import "PRHEmptyGrowlDelegate.h" + + +@implementation PRHEmptyGrowlDelegate + +@end diff --git a/Tools/xcodecapp-cocoa/xcodecapp-cocoa.xcodeproj/project.pbxproj b/Tools/xcodecapp-cocoa/xcodecapp-cocoa.xcodeproj/project.pbxproj index eb5f28d7c..14000baa7 100644 --- a/Tools/xcodecapp-cocoa/xcodecapp-cocoa.xcodeproj/project.pbxproj +++ b/Tools/xcodecapp-cocoa/xcodecapp-cocoa.xcodeproj/project.pbxproj @@ -10,7 +10,6 @@ 024A03DD13696C1900DCBE4D /* xcodecapp-cocoa.icns in Resources */ = {isa = PBXBuildFile; fileRef = 024A03DC13696C1900DCBE4D /* xcodecapp-cocoa.icns */; }; 024A03DF13696D9500DCBE4D /* xcodecapp-cocoa.png in Resources */ = {isa = PBXBuildFile; fileRef = 024A03DE13696D9500DCBE4D /* xcodecapp-cocoa.png */; }; 024A040B13698E7800DCBE4D /* project.pbxproj in Resources */ = {isa = PBXBuildFile; fileRef = 024A040A13698E7700DCBE4D /* project.pbxproj */; }; - 024A041213699D6800DCBE4D /* parser.j in Sources */ = {isa = PBXBuildFile; fileRef = 024A041113699D6800DCBE4D /* parser.j */; }; 024A041413699DD400DCBE4D /* parser.j in Resources */ = {isa = PBXBuildFile; fileRef = 024A041113699D6800DCBE4D /* parser.j */; }; 026F3B6213866B0B00EE5B83 /* xcodecapp-cocoa-icon-inactive.png in Resources */ = {isa = PBXBuildFile; fileRef = 026F3B6113866B0B00EE5B83 /* xcodecapp-cocoa-icon-inactive.png */; }; 026F3B6513866E7D00EE5B83 /* xcodecapp-cocoa-icon-active.png in Resources */ = {isa = PBXBuildFile; fileRef = 026F3B6413866E7D00EE5B83 /* xcodecapp-cocoa-icon-active.png */; }; @@ -23,6 +22,7 @@ 02998CEB1369BF7D006C73DB /* Growl Registration Ticket.growlRegDict in Resources */ = {isa = PBXBuildFile; fileRef = 02998CEA1369BF7D006C73DB /* Growl Registration Ticket.growlRegDict */; }; 02998CF71369C339006C73DB /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02998CF61369C339006C73DB /* Growl.framework */; }; 02998CF91369C38A006C73DB /* Growl.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 02998CF61369C339006C73DB /* Growl.framework */; }; + 651DAE1F13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 651DAE1D13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.m */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -56,6 +56,8 @@ 29B97319FDCFA39411CA2CEA /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/MainMenu.nib; sourceTree = ""; }; 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; + 651DAE1C13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.objj.h; path = PRHEmptyGrowlDelegate.h; sourceTree = ""; }; + 651DAE1D13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PRHEmptyGrowlDelegate.m; sourceTree = ""; }; 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 8E01A8DD0DE51A7C0008BB35 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; 8E01A91D0DE9EED20008BB35 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; }; @@ -79,6 +81,8 @@ 080E96DDFE201D6D7F000001 /* Classes */ = { isa = PBXGroup; children = ( + 651DAE1C13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.h */, + 651DAE1D13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.m */, 8E01A91D0DE9EED20008BB35 /* AppController.h */, 8E01A91E0DE9EED20008BB35 /* AppController.m */, ); @@ -229,7 +233,7 @@ files = ( 027D999E13696A7000D3DB13 /* main.m in Sources */, 027D999F13696A7000D3DB13 /* AppController.m in Sources */, - 024A041213699D6800DCBE4D /* parser.j in Sources */, + 651DAE1F13B0CAB900ECA3F0 /* PRHEmptyGrowlDelegate.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -263,7 +267,6 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)\"", - "\"/Volumes/Growl 1.2.1 SDK/Frameworks\"", ); GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_FIX_AND_CONTINUE = YES;