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

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

References: 
 >Re: Objective 2.0 properties (From: "Ignacio Enriquez" <email@hidden>)

  • Prev by Date: notification of NSSlider end of tracking
  • Next by Date: Re: notification of NSSlider end of tracking
  • Previous by thread: Re: Objective 2.0 properties
  • Next by thread: Re: Objective 2.0 properties
  • Index(es):
    • Date
    • Thread