• 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: [semi-newbie] Message sent to NSWindowController after complete window load
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >[semi-newbie] Message sent to NSWindowController after complete window load (From: mw <email@hidden>)

  • Prev by Date: Re: Carbon vs Cocoa
  • Next by Date: Re: Carbon vs Cocoa
  • Previous by thread: [semi-newbie] Message sent to NSWindowController after complete window load
  • Next by thread: importing NSView subclass from library?
  • Index(es):
    • Date
    • Thread