Source

growl / BeepAdditions.m

//
//  BeepAdditions.m
//  Beep-Cocoa
//
//  Created by Mac-arena the Bored Zo on 2004-12-06.
//

#import "BeepAdditions.h"


@implementation NSDictionary(BeepAdditions)

- (int)stateForKey:(NSString *)key {
	static int states[] = { NSOffState, NSOnState };
	return states[[[self objectForKey:key] boolValue] != NO];
}

@end