• 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: Dan Bernstein <cocoa-dev%email@hidden>
  • Date: Wed, 19 Mar 2003 13:10:35 +0200

There is a NSWindow delegate message, windowWillClose:. Make one of your controller objects the delegate of the window (or register for the NSWindowWillCloseNotification).

On Wednesday, March 19, 2003, at 12:57 PM, Suman Ganguly wrote:

Hi All,

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.

Thanks,

Suman Ganguly
_______________________________________________
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.
_______________________________________________
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: Beginner question with sheets
  • Next by Date: Re: Trapping window close event
  • Previous by thread: Trapping window close event
  • Next by thread: Re: Trapping window close event
  • Index(es):
    • Date
    • Thread