• 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: clarification regarding properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >clarification regarding properties (From: WT <email@hidden>)
 >Re: clarification regarding properties (From: Quincey Morris <email@hidden>)
 >Re: clarification regarding properties (From: WT <email@hidden>)
 >Re: clarification regarding properties (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: Network Errors
  • Next by Date: Re: Best Strategy to Control iTunes
  • Previous by thread: Re: clarification regarding properties
  • Next by thread: user access privileges to plist in /library/preferences
  • Index(es):
    • Date
    • Thread