Re: Controller for custom classes
Re: Controller for custom classes
- Subject: Re: Controller for custom classes
- From: Allan Odgaard <email@hidden>
- Date: Fri, 27 Feb 2004 19:08:10 +0100
On 27. Feb 2004, at 17:58, Fred Glover wrote:
Obviously I'd like to use the NSArrayController.
How do I set up my array of custom objects so that NSArrayController
will recognize them?
What do you mean by recognize? array controller doesn't really know
anything about the objects it contain -- all it nows are which class to
use to instantiate them and what keys are supported by the objects
(both supplied at the attributes page of the tool palette in IB).
The array controller has a content value which you can either connect
to an outlet in the model, bind to it (either have it (in the model) as
an array or implement the to-many accessor methods).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.