Re: Objective 2.0 properties
Re: Objective 2.0 properties
- Subject: Re: Objective 2.0 properties
- From: Charles Steinman <email@hidden>
- Date: Fri, 17 Oct 2008 12:24:29 -0700 (PDT)
--- On Fri, 10/17/08, Ignacio Enriquez <email@hidden> wrote:
> Regarding former responses...
> "aObject.property" is like using getter and
> setter methods (depending
> on the situation)
> and just "property" is going directly to the
> property ...
> Did I get it right? if so, why using setter methods when I
> can use it as it?
A property is just an interface. What they access is an instance variable. You should read the Objective-C 2.0 Programming Language document I linked you to. This is all explained there — I even linked directly to the part where it explains what the dot syntax means. It also sounds like the memory management guide would be useful:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html
Cheers,
Chuck
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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