I have two classes, RPlotController and SPlotController, both subclasses of PlotController which is a subclass of NSWindowController.

In both I have identical (I believe) button-actuated actions to close an active window. The action operates properly for RPlotController and does nothing for SPlotController. The code for both classes reads:

- (IBAction)quit:(id)sender
{
        [self close];
}

Breakpoint stopping at the "[self close]" line confirms that the button action is connected to the "quit" IBAction in both cases.

Both classes implement 'init' in like fashion (using different nibs and different NSView subclasses/connections):

- init
{
        [NSBundle loadNibNamed:@"SPlotWindow.nib" owner:self];
        [super initWithWindowNibName:@"SPlotWindow.nib"];
        [splotView initWithFrame:[splotView frame]];
        return self;
}

And both perform all the other actions associated with their respective 'nib' files.

I'm stuck.

Don Thompson
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to