Re: Accessor method article preview
Re: Accessor method article preview
- Subject: Re: Accessor method article preview
- From: Edwin Zacharias <email@hidden>
- Date: Fri, 28 Jun 2002 10:50:03 -0400
Marcel,
Your way is much better. Generating pure accessor methods is definitely
the way to go.
- Edwin
On Thursday, June 27, 2002, at 02:38 PM, Marcel Weiher wrote:
Good point. What I do in that case is split the thing up. One part is
the actual accessor (it just sets the instance variable), the other
part is the routine that does more work (and then isn't really just an
accessor, any more, IMHO).
So I\d have
idAccessor( image, _setImage )
-(void)setImage:(NSImage*)anImage
{
[self _setImage:anImage];
[scImageView setImage:anImage];
[self sizingOptionsDidChange];
}
But your solution looks good, too.
Regards,
Marcel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.