• 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: Trapping window close event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trapping window close event


  • Subject: Re: Trapping window close event
  • From: j o a r <email@hidden>
  • Date: Wed, 19 Mar 2003 12:10:03 +0100

Read about the concept of "delegation" in the Cocoa documentation, and then check the delegate methods of NSWindow. You should probably also check the documentation for NSApplication for the "applicationShouldTerminateAfterLastWindowClosed:" method.

j o a r

On Wednesday, Mar 19, 2003, at 11:57 Europe/Stockholm, Suman Ganguly wrote:

In my application I want to close the application as soon as the user clicks
on the close button (appearing on the left top corner of the window) of the
application window.

Is there any event or something else to trap that event? Any suggestion will
be highly appreciated.
_______________________________________________
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: 
 >Trapping window close event (From: Suman Ganguly <email@hidden>)

  • Prev by Date: Re: Trapping window close event
  • Next by Date: Re: Window Sheet
  • Previous by thread: Re: Trapping window close event
  • Next by thread: Re: Trapping window close event
  • Index(es):
    • Date
    • Thread