Re: [semi-newbie] Message sent to NSWindowController after complete window load
Re: [semi-newbie] Message sent to NSWindowController after complete window load
- Subject: Re: [semi-newbie] Message sent to NSWindowController after complete window load
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 02 Oct 2002 17:41:02 -0400
on 02-10-02 4:37 PM, mw at email@hidden wrote:
>
It would seem that the sheet cannot be dropped because the window isn't in
>
"modal session" yet. In the debugger, the window isn't even visible when the
>
line of code that produces this error is executed.
WindowDidLoad (like awakeFromNib) is called before the window is visible, I
believe. I would expect trouble if you tried to present an alert sheet on a
window that isn't visible yet.
Hunting around for better places to present the sheet, I see NSWindow's
windowDidExpose delegate method. That might do the trick. Or if your window
opens on top of other application windows (I assume it does), you might try
windowDidBecomeKey or windowDidBecomeMain.
What method or function are you calling to present the sheet?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.