• 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: mmalcolm crawford <email@hidden>
  • Date: Fri, 27 Feb 2004 10:25:18 -0800

On Feb 27, 2004, at 8:58 AM, Fred Glover wrote:

I'm in the early design stages of an application and want to control a collection of custom objects.
Imagine iPhoto for a minute. I want to display in a window a (relatively small) group of custom objects derived from NSImageView.

The *model* objects are derived from NSImageView?

Obviously I'd like to use the NSArrayController.
How do I set up my array of custom objects so that NSArrayController will recognize them?

This is covered in the existing documentation:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Tasks/masterdetail.html>
An array controller can manage any array (or, given suitable indexed accessor methods, "pseudo-array"); the reason for specifying the class for the objects it manages is so that you can use the controller to add new instances.

and for Malcom: I'd suggest a similar example code. How to build a container of custom objects so that NSArrayController can work with them.

Again, I think this is what much of the existing documentation describes -- I'm not sure what is unclear?

mmalc
_______________________________________________
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: Accepting url drags directly from safari
  • Next by Date: Re: Easy TableView problem
  • Previous by thread: Re: Controller for custom classes
  • Next by thread: Easy TableView problem
  • Index(es):
    • Date
    • Thread