Secondary Window Content
Secondary Window Content
- Subject: Secondary Window Content
- From: Mike Rossetti <email@hidden>
- Date: Tue, 1 Feb 2005 11:46:22 -0700
As I am getting started in Cocoa bindings (and, really, Cocoa in
general) I would be most grateful for a bit of guidance.
Here's the situation:
1. I have a window in which there is a list of items.
2. I select one of the items in the list.
3. I press an 'Edit' button.
I'd like a new window to come up which allows editing of the item
selected. More than one of these edit windows can be open (for
different items, of course) at a time.
4. I have an NSArrayController specialization (EditController) which
adds an 'edit:' selector.
5. The 'Edit' button is wired to the 'edit:' action.
6. The EditController's edit: selector create's a EditWindowController
and shows the window.
7. The EditWindowController gets initialized with the EditWindow nib
name and with a pointer to the item to be edited.
The EditWindow is supposed to show the information about the selected
item.
I'm stumbling over figuring out how to hook up the EditWindow so that
it knows about the item to which the controller points.
8. There is an ItemName field in the EditWindow. It's bound to an
NSObjectController which I call (EditController).
I don't know to where the content of the EditController so be connected
in order to get the pointer to the item being edited.
I'm thinking that I need to connect to the EditWindowController some
how. I've tried making my EditController of class
EditWindowController. No joy. Making an instance of the
EditWindowController doesn't work, of course, since it's not the same
one as used to create the window.
Any hints, pointers to documentation, or examples of how to do
multi-window applications (not just multi-documents but multi-windows
into the same doc for array elements) I would be most grateful.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden