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

Controller for custom classes


  • Subject: Controller for custom classes
  • From: Fred Glover <email@hidden>
  • Date: Fri, 27 Feb 2004 08:58:57 -0800

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. These will be contain images with metadata and they will all belong to the same collection. As in iPhoto, the number of image objects will vary. The user will be able to add, edit and delete the objects.

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

For a basic start, how would I set up a variable sized array of NSImageView objects so NSArrayController will recognize them?

The Enhanced Currency Controller sample uses an NSTableView which encapsulates all the array model logic as well as a lot if its own controller and view logic.

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.


I'm hoping for a quick hint of where to look, how to proceed.
Thanks,
Fred

Fred Glover
Machine Vision and Image Processing Engineering
Visicon Inc
www.visiconeng.com
Los Gatos, CA
408 354-0095
_______________________________________________
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.


  • Follow-Ups:
    • Re: Controller for custom classes
      • From: mmalcolm crawford <email@hidden>
    • Re: Controller for custom classes
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Protocol doesn't seem to compile? (SOLVED)
  • Next by Date: Easy TableView problem
  • Previous by thread: Re: Protocol doesn't seem to compile? (SOLVED)
  • Next by thread: Re: Controller for custom classes
  • Index(es):
    • Date
    • Thread