libs-gdl2/EOInterface/EOAspectConnector.m
David Ayers da1d2f0df1 * EOInterface/EOAssociation.m ([+objectDeallocated:]):
Use makeObjectsPerformSelector: instead of makeObjectsPerform:.

	* EOInterface/EORadioMatrixAssociation.m
	([NSMatrix-_selectCellWithTitle:]): Do not access instance variables
	directly.  Use accessor methods instead.
	
	* EOInterface/EOActionAssociation.m,
	* EOInterface/EOActionInsertionAssociation.m,
	* EOInterface/EOAspectConnector.m,
	* EOInterface/EOAssociation.m,
	* EOInterface/EOColumnAssociation.m,
	* EOInterface/EOComboBoxAssociation.m,
	* EOInterface/EODetailSelectionAssociation.m,
	* EOInterface/EODisplayGroup.m,
	* EOInterface/EOGenericControlAssociation.m,
	* EOInterface/EOMasterCopyAssociation.m,
	* EOInterface/EOMasterDetailAssociation.m,
	* EOInterface/EOMatrixAssociation.m,
	* EOInterface/EOPickTextAssociation.m,
	* EOInterface/EOPopUpAssociation.m,
	* EOInterface/EORadioMatrixAssociation.m,
	* EOInterface/EORecursiveBrowserAssociation.m,
	* EOInterface/EOTableViewAssociation.m,
	* EOInterface/EOTableViewAssociation.m,
	* EOInterface/EOTextAssociation.m,
	* EOInterface/NSImage+Additions.m:
	Add include for <GNUstepBase/GNUstep.h>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26321 72102866-910b-0410-8b05-ffd578937521
2008-03-16 21:43:28 +00:00

86 lines
2.4 KiB
Objective-C

/** -*-ObjC-*-
EOAspectConnector.m
Copyright (C) 2004,2005 Free Software Foundation, Inc.
Author: Matt Rice <ratmice@gmail.com>
This file is part of the GNUstep Database Library
The GNUstep Database Library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 3,
or (at your option) any later version.
The GNUstep Database Library is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the GNUstep Database Library; see the file COPYING. If not,
write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "EOAspectConnector.h"
#include <Foundation/NSCoder.h>
#include <GNUstepBase/GNUstep.h>
#include <EOInterface/EOAssociation.h>
@implementation EOAspectConnector : NSNibConnector
- (id) initWithAssociation:(EOAssociation *)association
aspectName:(NSString *)name
{
self = [super init];
ASSIGN(_aspectName, name);
ASSIGN(_association, association);
ASSIGN(_dg, [association displayGroupForAspect:_aspectName]);
ASSIGN(_destinationKey, [association displayGroupKeyForAspect:_aspectName]);
return self;
}
- (NSString *)aspectName
{
return _aspectName;
}
- (NSString *)destinationKey
{
return _destinationKey;
}
- (EOAssociation *)association
{
return _association;
}
- (id) initWithCoder:(NSCoder *)coder
{
self = [super initWithCoder:coder];
_association = RETAIN([coder decodeObject]);
_aspectName = RETAIN([coder decodeObject]);
_destinationKey = RETAIN([coder decodeObject]);
_dg = RETAIN([coder decodeObject]);
[_association bindAspect:_aspectName
displayGroup:_dg
key:_destinationKey];
return self;
}
- (void) encodeWithCoder:(NSCoder *)coder
{
[super encodeWithCoder:coder];
[coder encodeObject:_association];
[coder encodeObject:_aspectName];
[coder encodeObject:[self destinationKey]];
[coder encodeObject:[_association displayGroupForAspect:[self aspectName]]];
}
- (void) establishConnection
{
[_association establishConnection];
}
@end