Accessorizer’s “Defaults Table” allows you to define accessor settings (or property settings) based on TYPE. If switched ON, Accessorizer will consult this table and override the general settings.
//===========================================================
// songs
//===========================================================
- (NSMutableArray *)songs { return songs; }
- (void)setSongs:(NSMutableArray *)aSongs
{
[songs autorelease];
songs = [aSongs mutableCopy];
}
- (void)addSong:(id)aSong
{
[[self songs] addObject:aSong];
}
- (void)removeSong:(id)aSong
{
[[self songs] removeObject:aSong];
}
//===========================================================
// title
//===========================================================
- (NSString *)title { return [[title retain] autorelease]; }
- (void)setTitle:(NSString *)aTitle
{
if (title != aTitle) {
[title release];
title = [aTitle copy];
}
}
//===========================================================
// note
//===========================================================
- (QVNote *)note { return [[note retain] autorelease]; }
- (void)setNote:(QVNote *)aNote
{
if (note != aNote) {
[note release];
note = [aNote retain];
}
}
//===========================================================
// count
//===========================================================
- (int)count { return count; }
- (void)setCount:(int)aCount
{
count = aCount;
}
//===========================================================
// dealloc
//===========================================================
- (void)dealloc
{
[songs release];
[title release];
[note release];
[super dealloc];
}
General settings
Accessorizer will generate add<Key>:
and remove:<Key>:
methods with NSMutableArray
Defaults Table






Features

only $15