Skip navigation.
 
mlRe: Communications between multiple NIB's
FROM : Bertil Holmberg
DATE : Mon Mar 24 22:39:46 2008

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_removed>:

> 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!
>

Related mailsAuthorDate
mlCommunications between multiple NIB's Lincoln Green Mar 24, 17:02
mlRe: Communications between multiple NIB's Cathy Shive Mar 24, 17:06
mlRe: Communications between multiple NIB's Sherm Pendley Mar 24, 17:11
mlRe: Communications between multiple NIB's Jonathan Hess Mar 24, 20:37
mlRe: Communications between multiple NIB's Bertil Holmberg Mar 24, 22:39
mlRe: Communications between multiple NIB's Gerd Knops Mar 24, 23:27
mlRe: Communications between multiple NIB's Steve Weller Mar 25, 01:58
mlRe: Communications between multiple NIB's Lincoln Green Mar 28, 19:27
mlRe: Communications between multiple NIB's Steve Weller Mar 29, 16:31