• 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: Responder chain messed up after window close...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Responder chain messed up after window close...


  • Subject: Re: Responder chain messed up after window close...
  • From: Jim Correia <email@hidden>
  • Date: Sat, 18 Aug 2007 11:50:44 -0400

On Aug 18, 2007, at 11:35 AM, Thomas Engelmeier wrote:

I added an splash screen (_startupWindow) to my application.
In awakeFromNib: it's controller calls

	[NSApp beginModalSessionForWindow:_startupWindow];

and when an dismiss button is pressed,

[NSApp stopModal];
[_startupWindow orderOut:self];
[_startupWindow close]; // causes - an intended - an release of _startupWindow


If I select any menu, the menu handler accesses the released window instance (as of NSZombieEnabled, and commenting out [_startupWindow close]).

What step to remove the window from the responder chain am I missing?

-beginModalSessionForWindow: needs to be paired with -endModalSession:

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#// apple_ref/occ/instm/NSApplication/beginModalSessionForWindow:>

Jim
_______________________________________________

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:
    • Re: Responder chain messed up after window close...
      • From: Thomas Engelmeier <email@hidden>
References: 
 >Responder chain messed up after window close... (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Responder chain messed up after window close...
  • Next by Date: Re: Another Core Data + table view question
  • Previous by thread: Responder chain messed up after window close...
  • Next by thread: Re: Responder chain messed up after window close...
  • Index(es):
    • Date
    • Thread