Re: clarification regarding properties
Re: clarification regarding properties
- Subject: Re: clarification regarding properties
- From: Michael Ash <email@hidden>
- Date: Tue, 31 Mar 2009 20:50:49 -0400
On Tue, Mar 31, 2009 at 3:56 PM, Jeremy Pereira <email@hidden> wrote:
> If you're a Java programmer, it might help to think of the objective C
> property like this:
>
> bar = self.foo; // is equivalent to bar = this.getFoo();
> self.foo = bar; // is equivalent to this.setFoo(bar);
Or better, keep it all in the language you're using:
bar = self.foo; // is equivalent to bar = [self foo];
self.foo = bar; // is equivalent to [self setFoo:bar];
Which gives you the literal truth, as that's exactly how it translates.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden