• 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
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]

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

  • Follow-Ups:
    • Re: Two controllers in a window, how do I get one to run a function in another?
      • From: bryscomat <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: Re: Reasons why QL would fail to create thumbnail?
  • Next by Date: Re: Two controllers in a window, how do I get one to run a function in another?
  • Previous by thread: Temporarily disabling all input events while non-blocking animations are playing
  • Next by thread: Re: Two controllers in a window, how do I get one to run a function in another?
  • Index(es):
    • Date
    • Thread