Window 'close' action fails
Window 'close' action fails
- Subject: Window 'close' action fails
- From: dct <email@hidden>
- Date: Fri, 15 Aug 2008 12:35:21 -0700
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 (email@hidden)
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:
This email sent to email@hidden