[MacRuby-devel] NSArrayController
Brad Wilson
brad at lucky-dip.net
Fri Sep 26 05:52:44 PDT 2008
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/Concepts/AccessorConventions.html#/
> /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
More information about the MacRuby-devel
mailing list