Controller for custom classes
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.