Accessorizer
has the most thorough selection of accessor styles to suit your coding needs including support for CoreData persistence of non-standard attributes.
Accessorizer
has the most thorough selection of accessor styles to suit your coding needs including support for CoreData persistence of non-standard attributes.
NSString *title;
NSInteger trackCount;
QVNote *note;
- (NSString *) title;
- (void) setTitle: (NSString *) newTitle;
- (NSInteger) trackCount;
- (void) setTrackCount: (NSInteger) newTrackCount;
- (QVNote *) note;
- (void) setNote: (QVNote *) newNote;
.h
.m
- (NSString *) title {
return [[title retain] autorelease];
}
- (void) setTitle: (NSString *) newTitle {
if (title != newTitle) {
[title release];
title = [newTitle copy];
}
}
- (NSInteger) trackCount {
return trackCount;
}
- (void) setTrackCount: (NSInteger) newTrackCount {
trackCount = newTrackCount;
}
- (QVNote *) note {
return [[note retain] autorelease];
}
- (void) setNote: (QVNote *) newNote {
if (note != newNote) {
[note release];
note = [newNote retain];
}
}
Animal <NSCopying> *animal;
.h
// animal
- (Animal <NSCopying> *) animal
{
return animal;
}
- (void) setAnimal: (Animal <NSCopying> *) anAnimal
{
anAnimal = [anAnimal copy];
[animal release];
animal = anAnimal;
}
// dealloc
- (void) dealloc
{
[animal release];
[super dealloc];
}
.m
Standard Accessors & Mutators






Features

only $15