• 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
WindowController fails when trying add a panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WindowController fails when trying add a panel


  • Subject: WindowController fails when trying add a panel
  • From: John Nairn <email@hidden>
  • Date: Tue, 28 Jun 2005 11:12:09 +0200

I added a panel to a nib file for a WindowController and now the window fails to open. The code to open the window in the NSDocument file is:

    ctl=[[MovieController alloc] initForMPM:type];
    [self addWindowController:ctl];
    [[ctl window] makeKeyAndOrderFront:nil];
    [ctl release];

and the window fails in the third line with error message

2005-06-28 11:06:30.041 NairnFEAMPM[11528] *** Assertion failure in - [NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndS elector:contextInfo:], AppKit.subproj/NSApplication.m:3037
2005-06-28 11:06:30.042 NairnFEAMPM[11528] Modal session requires modal window


But this window is a non-modal window? The new panel is connected to the window controller with

    IBOutlet NSPanel *userLimitsPanel;

If I disconnect this link in the nib file the window opens fine (but of course I can not use the panel). Reconnecting the link at it fails again. As far as I can tell, I did this panel by identical methods I have used before. All others work but this one fails?

---------------
John Nairn (1-801-581-3413, FAX:1-801-581-4816)
Web Page: http://www.mse.utah.edu/~nairn

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: dyld: Library not loaded
  • Next by Date: Spotlight bindings example?
  • Previous by thread: Re: dyld: Library not loaded
  • Next by thread: Spotlight bindings example?
  • Index(es):
    • Date
    • Thread