• 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: Controller for custom classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Controller for custom classes (From: Fred Glover <email@hidden>)

  • Prev by Date: Re: Easy TableView problem
  • Next by Date: Re: Accepting url drags directly from safari
  • Previous by thread: Controller for custom classes
  • Next by thread: Re: Controller for custom classes
  • Index(es):
    • Date
    • Thread