• 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: several windows in a NIB ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: several windows in a NIB ?


  • Subject: Re: several windows in a NIB ?
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 27 Mar 2009 12:17:05 -0400

  Oh, and leaning the other way, your problem is best solved by using
a central controller as an access path to get to the other
controllers. In a non-doc-based app, that'd be some central
MyApplicationController with outlets to all other controllers. Those
subsystem controllers would have an outlet back to the
MyApplicationController instance (or, if it's the app delegate, [NSApp
delegate] will get you there as well).

  So, if you have something like an audio file player with a
visualizer and the audio transport is handled in one controller while
the visualizer is handled in another, they could get at each other by:

[self setTrackTitleBannerText:[[[self appController]
transportController] currentTrack] title]];

  It's always advantageous to have a "grand central station" or a
"fuse box" for your app. In the case of a doc-based app, your
NSDocument subclass would be that controller.

--
I.S.
_______________________________________________

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: 
 >several windows in a NIB ? (From: Guillaume Laurent <email@hidden>)

  • Prev by Date: Re: several windows in a NIB ?
  • Next by Date: clarification regarding properties
  • Previous by thread: Referencing a controller from one NIB to another ?
  • Next by thread: clarification regarding properties
  • Index(es):
    • Date
    • Thread