summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SwifTools/Notifier/GrowlNotifier.mm1
-rw-r--r--SwifTools/Notifier/GrowlNotifierDelegate.h1
-rw-r--r--SwifTools/Notifier/GrowlNotifierDelegate.mm1
3 files changed, 3 insertions, 0 deletions
diff --git a/SwifTools/Notifier/GrowlNotifier.mm b/SwifTools/Notifier/GrowlNotifier.mm
index 31eabd3..b0f26ce 100644
--- a/SwifTools/Notifier/GrowlNotifier.mm
+++ b/SwifTools/Notifier/GrowlNotifier.mm
@@ -29,18 +29,19 @@ namespace Swift {
class GrowlNotifier::Private {
public:
std::set<Context*> pendingNotifications;
boost::intrusive_ptr<GrowlNotifierDelegate> delegate;
};
GrowlNotifier::GrowlNotifier(const std::string& name) {
p = boost::make_shared<Private>();
p->delegate = boost::intrusive_ptr<GrowlNotifierDelegate>([[GrowlNotifierDelegate alloc] init], false);
+ p->delegate.get().notifier = this;
p->delegate.get().name = STD2NSSTRING(name);
NSMutableArray* allNotifications = [[NSMutableArray alloc] init];
foreach(Type type, getAllTypes()) {
[allNotifications addObject: STD2NSSTRING(typeToString(type))];
}
NSMutableArray* defaultNotifications = [[NSMutableArray alloc] init];
foreach(Type type, getDefaultTypes()) {
diff --git a/SwifTools/Notifier/GrowlNotifierDelegate.h b/SwifTools/Notifier/GrowlNotifierDelegate.h
index 7a556cc..b7f0968 100644
--- a/SwifTools/Notifier/GrowlNotifierDelegate.h
+++ b/SwifTools/Notifier/GrowlNotifierDelegate.h
@@ -12,17 +12,18 @@ namespace Swift {
@interface GrowlNotifierDelegate : NSObject<GrowlApplicationBridgeDelegate> {
Swift::GrowlNotifier* notifier;
NSString* name;
NSDictionary* registrationDictionary;
}
@property (nonatomic, retain) NSDictionary* registrationDictionary;
@property (nonatomic, copy) NSString* name;
+@property (nonatomic) Swift::GrowlNotifier* notifier;
- (NSDictionary*) registrationDictionaryForGrowl;
- (NSString *) applicationNameForGrowl;
- (void) growlNotificationWasClicked: (id) clickContext;
- (void) growlNotificationTimedOut: (id) clickContext;
@end
diff --git a/SwifTools/Notifier/GrowlNotifierDelegate.mm b/SwifTools/Notifier/GrowlNotifierDelegate.mm
index c7f725f..6952cab 100644
--- a/SwifTools/Notifier/GrowlNotifierDelegate.mm
+++ b/SwifTools/Notifier/GrowlNotifierDelegate.mm
@@ -6,18 +6,19 @@
#import "GrowlNotifierDelegate.h"
#include <SwifTools/Notifier/GrowlNotifier.h>
@implementation GrowlNotifierDelegate;
@synthesize registrationDictionary;
@synthesize name;
+@synthesize notifier;
using namespace Swift;
- (NSString *) applicationNameForGrowl {
return name;
}
- (NSDictionary*) registrationDictionaryForGrowl {
return registrationDictionary;