Two controllers in a window, how do I get one to run a function in another?
Two controllers in a window, how do I get one to run a function in another?
- Subject: Two controllers in a window, how do I get one to run a function in another?
- From: Support <email@hidden>
- Date: Thu, 27 Aug 2009 14:55:17 +0100
I'm writing an application which has one window, with an NSTableView and a WebView in it. The NSTableView will contain a list of URLs and site descriptions and the WebView will display the URL when it's clicked on in the NSTableView. So far, so simple - especially if the NSTableView and WebView are in the same object.
I want to have two NSObjects (controllers) - one for the tableview and all the actions that it needs to perform, and one for the web view. I am having difficulty getting the tableview controller to tell the webview controller to display a particular page. And I can't find anything about this subject in my Cocoa books or on the web. Am I barking up the wrong tree here? Should I only have one controller per window?
I'd be most grateful for any enlightenment.
_______________________________________________
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