ftp.nice.ch/pub/next/developer/objc/EOF/OTC_EOFBetaExamples.1.0.bs.tar.gz#/OTC_EOFBetaExamples_V1.0/EOFramework/EnterpriseObject/Address.m

This is Address.m in view mode; [Download] [Up]

/*--------------------------------------------------------------------------
 *
 * 	You may freely copy, distribute, and reuse the code in this example.
 * 	SHL Systemhouse disclaims any warranty of any kind, expressed or  
 *	implied, as to its fitness for any particular use.
 *
 *	Publisher
 *
 *	Inherits From:		NSObject
 *
 *	Conforms To:		None
 *
 *	Declared In:		Address.h
 *
 *------------------------------------------------------------------------*/
#import "Address.h"
#import <foundation/NSString.h>




@implementation Address

/*--------------------------------------------------------------------------
 *	Init and Dealloc
 *------------------------------------------------------------------------*/
- init
{
	[super init];
	return self;
}


- (void) dealloc
{
	[address release];
	[city release];
	[state release];
	[zip release];
	[super dealloc];
}


/*--------------------------------------------------------------------------
 *	Accessors
 *------------------------------------------------------------------------*/
- (NSString *) address
{
	return address;
}


- (NSString *) city
{
	return city;
}


- (NSString *) state
{
	return state;
}


- (NSString *) zip
{
	return zip;
}


- (void) setAddress: (NSString *)anAddress
{
	[address autorelease];
	address = [anAddress retain];
}


- (void) setCity: (NSString *)aCity;
{
	[city autorelease];
	city = [aCity retain];
}


- (void) setState: (NSString *)aState
{
	[state autorelease];
	state = [aState retain];
}


- (void) setZip: (NSString *)aZip
{
	[zip autorelease];
	zip = [aZip retain];
}


@end
	

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.