Accessorizer’sDefaults 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

What developers 
are saying ...testimonials.htmltestimonials.htmlshapeimage_1_link_0shapeimage_1_link_1
Videos & TutorialsaccessorizerVideos.htmlaccessorizerVideos.htmlshapeimage_3_link_0
Homeaccessorizer.htmlaccessorizer.htmlshapeimage_4_link_0
© 2002 - 2009 Kevin Callahanhttp://www.kevincallahan.orgshapeimage_5_link_0

KVO

Initialization MethodsinitMethods.htmlinitMethods.htmlshapeimage_6_link_0

Features

Indexed AccessorsindexedAccessors.htmlindexedAccessors.htmlshapeimage_7_link_0
BUYhttp://store.eSellerate.net/s.aspx?s=STR5524388698

only $15