• 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: Communications between multiple NIB's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Communications between multiple NIB's


  • Subject: Re: Communications between multiple NIB's
  • From: Bertil Holmberg <email@hidden>
  • Date: Mon, 24 Mar 2008 22:39:46 +0100

This is the single question that's keeping all newbies awake at night.

Provided that your Prefs nib has a controller, you can use a Notification to let your main app know about the color changes.

However, isn't it plausible that your Prefs nib is lazily loaded by your main app? If so, it can easily place a link to itself in the Prefs baby. The Notification is cooler though, I think.

As the more experienced hands already has noted, the Responder chain should also work for you.

Another way is to make your main app the delegate of NSApp. Then other classes can find it with [NSApp delegate].

Just some thoughts from another newbie, please correct me if I'm wrong.

Regards,
Bertil

24 mar 2008 kl. 17:03 skrev email@hidden:

Is there a way to programmatically connect to a NIB file and read it's
outlets without changing my File's Owner? I have a color well in one
NIB (My Prefs NIB) and a window in another. I want the color well to
change the window's background. I have an action called setColor:, but
I cannot figure out how to access the window outlet from the NIB
containing the window. Please help!


_______________________________________________

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: Communications between multiple NIB's
      • From: Gerd Knops <email@hidden>
  • Prev by Date: Re: How to get NSURL* form NSURLConnection?
  • Next by Date: Re: How to get NSURL* form NSURLConnection?
  • Previous by thread: Re: Communications between multiple NIB's
  • Next by thread: Re: Communications between multiple NIB's
  • Index(es):
    • Date
    • Thread