Re: IB connections with view swapping?
Re: IB connections with view swapping?
- Subject: Re: IB connections with view swapping?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 20 Aug 2009 11:06:07 -0700
On Thu, Aug 20, 2009 at 10:39 AM, Oftenwrong
Soong<email@hidden> wrote:
> The nib file's owner is the view controller, not MyDocument. Is it best to bind to my model via the view controller's representedObject?
That's what it's for.
> Also I'll need a few Target/Actions. Should I subclass NSViewController, put the actions in the subclass, and then forward them to MyDocument? Or is there a nicer way?
Typically people patch the view controller into the responder chain.
Even with that—and even programs that don't swap views around at
all—sometimes your window or view controller will need to respond to
an action and then turn around and send out a different action to a
specific object.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden