• 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
Howto issue stopModal to NSApp if the Window is close?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Howto issue stopModal to NSApp if the Window is close?


  • Subject: Howto issue stopModal to NSApp if the Window is close?
  • From: "Devraj Mukherjee" <email@hidden>
  • Date: Sat, 2 Feb 2008 16:50:49 +1100

Hi everyone,

I have a Window in my Nib file that I run in modal mode using [NSApp
runModalForWindow: aWindow]. By default a button on the Window issues
the [NSApp stopModal] and then the application continues.

However when someone hits the close button the application is still in
Modal mode. Is there a way of hooking onto the "close" action so I can
stop the application running in modal mode after the Window has been
closed.

Thanks.

--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)
_______________________________________________

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: Howto issue stopModal to NSApp if the Window is close?
      • From: Nir Soffer <email@hidden>
  • Prev by Date: Re: mouseDown: with Core Animation
  • Next by Date: NSAppleScript question
  • Previous by thread: Re: Relationships during awakeFromInsert
  • Next by thread: Re: Howto issue stopModal to NSApp if the Window is close?
  • Index(es):
    • Date
    • Thread