• 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
Re: Modal window help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal window help


  • Subject: Re: Modal window help
  • From: Ryan Bates <email@hidden>
  • Date: Tue, 17 Feb 2004 10:35:53 -0800

First, make sure the window you are passing isn't nil. If it is then you will get that error. Check the IB to make sure the outlet is connected to the window properly.

Ryan

On Feb 16, 2004, at 11:10 PM, Bill Houston wrote:

Converting my NSWindow to an NSPanel does not make any difference I still
get an "Uncaught exception: <NSInternalInconsistencyException> Modal session
requires modal window" error.

Any other thoughts anyone?

Bill


On 2/16/04 5:01 PM, "Nick Zitzmann" <email@hidden> wrote:


On Feb 16, 2004, at 1:23 PM, Bill Houston wrote:

I am trying to run an NSWindow created in InterfaceBuilder as a modal
window
using runModalForWindow.
When I execute the application I get the following runtime error
message:
"Uncaught exception: <NSInternalInconsistencyException> Modal session
requires modal window"

Does it work if you change the NSWindow into an NSPanel? Also, if
you're trying to open the window in another thread (which is what the
error message is suggesting to me), you ought to perform the
-runModalForWindow: selector in the main thread.

Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request

UNIX: Where /sbin/init is Job #1.
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: Modal window help (From: Bill Houston <email@hidden>)

  • Prev by Date: initializing a Window Controller
  • Next by Date: Re: [Slightly OT] Shareware donation collection
  • Previous by thread: Re: Modal window help
  • Next by thread: mamsam list archive is corrupted!
  • Index(es):
    • Date
    • Thread