• 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
Calling another window controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling another window controller


  • Subject: Calling another window controller
  • From: Todd Freese <email@hidden>
  • Date: Thu, 29 Jan 2004 14:19:56 -0600

I have to windows, each with their own controller. They where created in two
different NIBs using IB.

Controller_A is the main controller for the application and Controller_B is
for a preference window.

I have imported Controller_B9s .h file into Controller_A. Now it seems that
I should be able to call a method in Controller_B from Controller_A with a
line like 3[Controller_B openPrefWindow:self]2. However this does not work.
I get a compiler warning stating that 3Controller_B may not respond to
+openPrefWindow.2 And of course, it doesn9t work. The Controller_B method is
not getting called.

What am I missing here?

Thanks in advance...

Todd Freese
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Any new/updated Cocoa books soon?
  • Next by Date: Resetting user defaults?
  • Previous by thread: MVC and multiple tables
  • Next by thread: Resetting user defaults?
  • Index(es):
    • Date
    • Thread