Accessorizer
will write an NSLog() function inside your accessors. You can set the log to // comment out and turn on as need.
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()






Features

only $15