• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Window 'close' action fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • arch: posix_spawnp: /Developer/Tools/otest: Bad CPU type in executable
      • From: Nick Pilch <email@hidden>
    • Re: Window 'close' action fails
      • From: Charles Steinman <email@hidden>
  • Prev by Date: Forcing an NSImage to render it's NSImageRep's ?
  • Next by Date: Re: NSLocalizedString, genstrings, and Unicode
  • Previous by thread: Re: Forcing an NSImage to render it's NSImageRep's ?
  • Next by thread: Re: Window 'close' action fails
  • Index(es):
    • Date
    • Thread