//
//  PWObservationInfo.m
//  PWAppKit
//
//  Created by Frank Illenberger on 05.03.06.
//  Copyright 2006 ProjectWizards, Melle, Germany. 
//

#import "PWObservationInfo.h"

@implementation PWObservationInfo

- (id)initWithObserver:(id)anObserver keyPath:(NSString *)path options:(NSKeyValueObservingOptions)theOptions context:(void *)aContext
{
	[super init];
	observer = anObserver;
	keyPath = [path copy];
	options = theOptions;
	context = aContext;
	return self;
}

- (void)dealloc
{
	[keyPath release];
	[super dealloc];
}

- (BOOL)isEqual:(id)anObject
{
	if( [anObject isKindOfClass:[PWObservationInfo class]])
	{
		PWObservationInfo *info = (PWObservationInfo *)anObject;
		return info->observer == observer && [info->keyPath isEqual:keyPath];
	}
	else
		return NO;
}

@end
