Searching for connection to the wrong class
Searching for connection to the wrong class
- Subject: Searching for connection to the wrong class
- From: Lorenzo <email@hidden>
- Date: Sat, 14 Feb 2004 18:24:54 +0100
Hi,
from my class screenSaverClass I initiate and call
-------------------------------------------
- (NSWindow*)configureSheet
{
if (!_panelController) {
_panelController = [[OptionPanelController alloc]
initWithWindowNibName:@"OptionView" sender:self];
}
return [_panelController window];
}
-------------------------------------------
The OptionPanelController class is a subclass of NSWindowController.
The OptionView.nib file has the File's Owner class set to
NSObject:NSResponder:NSWindowController:OptionPanelController
And here is the initWithWindowNibName method
-------------------------------------------
- (id)initWithWindowNibName:(NSString*)windowNibName sender:(id)sender
{
owner = sender;
self = [super initWithWindowNibName:windowNibName];
return self;
}
-------------------------------------------
In the OptionPanelController class I have other classes like "pressOK",
"pressCancel"...
It worked well for so long time, but now, I don't know why, whenever the
user presses the button Option in the ScreenSaver panel
I get the messages like this
-------------------------------------------
2004-02-14 17:24:25.019 System Preferences[1846] Could not connect the
action pressOK: to target of class screenSaverClass
-------------------------------------------
It seems that the method "pressOK" should be in the class screenSaverClass.
Instead it is in the OptionPanelController class. It worked well for so long
time, but now it ask the methods are in the screenSaverClass. Why?
Also, I have other application which have the same structure. And they work
so well.
What could I have changed in my app to get this strange error?
I cleared the active target, and deletes the build folder, then rebuilt
again, but unsuccessfully.
I also recreate the nib file, but again, I get the same error.
I cannot undertsand why I get this error while my other applications with
the same structure have no problems.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.