Re: Two controllers in a window, how do I get one to run a function in another?
Re: Two controllers in a window, how do I get one to run a function in another?
- Subject: Re: Two controllers in a window, how do I get one to run a function in another?
- From: Sherm Pendley <email@hidden>
- Date: Thu, 27 Aug 2009 10:12:42 -0400
On Thu, Aug 27, 2009 at 10:04 AM, Graham Cox<email@hidden> wrote:
>
> On 27/08/2009, at 11:55 PM, Support wrote:
>
>> 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.
>
>
> One controller for each view sounds like a good plan. There's certainly no
> requirement that you can have only one controller per window.
Also, there's no requirement that outlets refer to graphical widgets
either. You can create outlets that refer to other controller objects
too, and connect them in Interface Builder.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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