• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessor method article preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Accessor method article preview (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: Quartz/memory benchmarks...
  • Next by Date: Re: Communication between classes
  • Previous by thread: Re: Accessor method article preview
  • Next by thread: ARGH Re: Accessor method article preview
  • Index(es):
    • Date
    • Thread