Accessorizer

will write an NSLog() function inside your accessors.  You can set the log to // comment out and turn on as need.

NSString *name;

int count;

NSPoint point;

.h

.m

//  name

- (NSString *) name

{

    //NSLog(@"in -name, returned name = %@", name);


    return [[name retain] autorelease];

}


- (void) setName: (NSString *) aName

{

    //NSLog(@"in -setName:, old value of name: %@, changed to: %@", name, aName);


    if (name != aName) {

        [name release];

        name = [aName copy];

    }

}


//  count

- (int) count

{

    //NSLog(@"in -count, returned count = %i", count);


    return count;

}


- (void) setCount: (int) aCount

{

    //NSLog(@"in -setCount, old value of count: %i, changed to: %i", count, aCount);


    count = aCount;

}


//  point

- (NSPoint) point

{

    //NSLog(@"in -point, return point (%f, %f)",point.x,point.y);


    return point;

}


- (void) setPoint: (NSPoint) aPoint

{

    //NSLog(@"in -setPoint:, old value of point: (%f, %f), changed to: (%f, %f)",point.x,point.y,aPoint.x,aPoint.y);


    point = aPoint;

}


NSLog()

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