• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Two controllers in a window, how do I get one to run a function in another?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Two controllers in a window, how do I get one to run a function in another? (From: Support <email@hidden>)
 >Re: Two controllers in a window, how do I get one to run a function in another? (From: Graham Cox <email@hidden>)

  • Prev by Date: Best way to determine what ip address are assigned to a given network interface.
  • Next by Date: Re: Two controllers in a window, how do I get one to run a function in another?
  • Previous by thread: Re: Two controllers in a window, how do I get one to run a function in another?
  • Next by thread: Re: Two controllers in a window, how do I get one to run a function in another?
  • Index(es):
    • Date
    • Thread