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