| author | Rudy Richter |
| Sat Aug 01 20:43:39 2009 -0400 (2009-08-01) | |
| changeset 4259 | 0e9b6b0b1e25 |
| parent 2402 | ab55af458f8f |
| child 4311 | 5cea9bbdea33 |
| permissions | -rw-r--r-- |
| boredzo@2402 | 1 |
// |
| boredzo@2402 | 2 |
// GrowlMailMePrefs.m |
| boredzo@2402 | 3 |
// Display Plugins |
| boredzo@2402 | 4 |
// |
| boredzo@2402 | 5 |
// Copyright 2004 Mac-arena the Bored Zo. All rights reserved. |
| boredzo@2402 | 6 |
// |
| boredzo@2402 | 7 |
|
| boredzo@2402 | 8 |
#import "GrowlMailMePrefs.h" |
| boredzo@2402 | 9 |
#import "GrowlDefinesInternal.h" |
| boredzo@2402 | 10 |
|
| boredzo@2402 | 11 |
#define destAddressKey @"MailMe - Recipient address" |
| boredzo@2402 | 12 |
|
| boredzo@2402 | 13 |
@implementation GrowlMailMePrefs |
| boredzo@2402 | 14 |
|
| boredzo@2402 | 15 |
- (NSString *) mainNibName {
|
| boredzo@2402 | 16 |
return @"GrowlMailMePrefs"; |
| boredzo@2402 | 17 |
} |
| boredzo@2402 | 18 |
|
| boredzo@2402 | 19 |
- (void) didSelect {
|
| boredzo@2402 | 20 |
SYNCHRONIZE_GROWL_PREFS(); |
| boredzo@2402 | 21 |
} |
| boredzo@2402 | 22 |
|
| boredzo@2402 | 23 |
#pragma mark - |
| boredzo@2402 | 24 |
|
| boredzo@2402 | 25 |
- (NSString *) getDestAddress {
|
| boredzo@2402 | 26 |
NSString *value = nil; |
| boredzo@2402 | 27 |
READ_GROWL_PREF_VALUE(destAddressKey, @"com.Growl.MailMe", NSString *, &value); |
| Rudy@4259 | 28 |
if(value) {
|
| Rudy@4259 | 29 |
CFMakeCollectable(value); |
| Rudy@4259 | 30 |
} |
| boredzo@2402 | 31 |
return [value autorelease]; |
| boredzo@2402 | 32 |
} |
| boredzo@2402 | 33 |
|
| boredzo@2402 | 34 |
- (void) setDestAddress:(NSString *)value {
|
| boredzo@2402 | 35 |
if (!value) {
|
| boredzo@2402 | 36 |
value = @""; |
| boredzo@2402 | 37 |
} |
| boredzo@2402 | 38 |
WRITE_GROWL_PREF_VALUE(destAddressKey, value, @"com.Growl.MailMe"); |
| boredzo@2402 | 39 |
UPDATE_GROWL_PREFS(); |
| boredzo@2402 | 40 |
} |
| boredzo@2402 | 41 |
|
| boredzo@2402 | 42 |
@end |