26 Sep
2008
26 Sep
'08
12:52 p.m.
On 26/09/2008, at 10:32 PM, Richard Kilmer wrote:
On Sep 26, 2008, at 3:17 AM, Brad Wilson wrote:
Brad,
Try this:
def initialize @employees = [] end
I found this in the Indexed Accessor Patters for To-Map Properties section of the KVC programming guide:
http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Con... /apple_ref/doc/uid/20002174-BAJEAIEE
Ok that makes sense. I'll try it out. Thanks! I don't entirely understand KVC yet, and from what I understood the standard ruby attr_accessor would be enough to handle it. I'll try adding the extra methods. Brad