Re: Communications between multiple NIB's

2008-03-29 Thread Steve Weller
On Mar 28, 2008, at 11:27 AM, Lincoln Green wrote: I followed your suggestion, and it worked great! However, when I delete the preferences file form /Library/Preferences/, my application won't put up a window. Any suggestions to get around this? Check the console window in Xcode and then st

Re: Communications between multiple NIB's

2008-03-28 Thread Lincoln Green
I followed your suggestion, and it worked great! However, when I delete the preferences file form /Library/Preferences/, my application won't put up a window. Any suggestions to get around this? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Communications between multiple NIB's

2008-03-24 Thread Steve Weller
On Mar 24, 2008, at 3:27 PM, Gerd Knops wrote: 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 hav

Re: Communications between multiple NIB's

2008-03-24 Thread Gerd Knops
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 ou

Re: Communications between multiple NIB's

2008-03-24 Thread Bertil Holmberg
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 ca

Re: Communications between multiple NIB's

2008-03-24 Thread Jonathan Hess
Hey Lincoln - To do this with actions and outlets, you just have to have your controllers communicate. Something like this should work: @interface MainController : NSObject { NSWindow *window; } - (void)setWindowBackgroundColor:(NSColor *)color; @end @implementation MainController -

Re: Communications between multiple NIB's

2008-03-24 Thread Sherm Pendley
On Mon, Mar 24, 2008 at 12:02 PM, Lincoln Green <[EMAIL PROTECTED]> wrote: > Alright, I have been searching archives, following tutorials, and > looking at source code for several hours, and I cannot figure out the > answer to my problem. > > Is there a way to programmatically connect to a NIB fil

Re: Communications between multiple NIB's

2008-03-24 Thread Cathy Shive
Hi, Have you tried using the "FirstResponder" for this? Add an action to the preferences window's nib's "FirstResponder" called "setWindowBackgroundColor". Then connect the color well to the first responder and connect to that action. If the window controller of the other window implemen

Communications between multiple NIB's

2008-03-24 Thread Lincoln Green
Alright, I have been searching archives, following tutorials, and looking at source code for several hours, and I cannot figure out the answer to my problem. 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