Re: Secondary Window Content
Re: Secondary Window Content
- Subject: Re: Secondary Window Content
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 1 Feb 2005 12:03:56 -0800
On Feb 1, 2005, at 10:46 AM, Mike Rossetti wrote:
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.
Add an instance variable to EditWindowController for the item to be
edited.
Bind the 'content' of the object controller in the EditWindow nib to
that variable.
After you've created your new EditWindowController, set its item, for
example:
newWindow = [[EditWindowController alloc] initWithWindowNibName:
@"EditWindow"];
[newWindow setItem:[self selection]];
mmalc
_______________________________________________
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