Leopard Properties and NSMutable Array
mmalc crawford
mmalc_lists at mac.com
Sun Jan 6 11:19:10 PST 2008
On Jan 6, 2008, at 9:57 AM, Jonathan Dann wrote:
> What I really wanted was the ability to declare the mutable array as
> a property as a I've really grown to like the 'dot syntax'
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_4.html
>
"Accessing a property property calls the get method associated with
the property (by default, property) and setting it calls the set
method associated with the property (by default, setProperty:). In
fact, as long as there is an appropriate getter and setter available,
you can use the dot-syntax invoke those methods even if you havent
declared a property (if you havent declared a property, the getter
and setter must be named property and setProperty: respectively)."
mmalc
More information about the MacOSX-dev
mailing list