• 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: Cocoa Cleanup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Cleanup


  • Subject: Re: Cocoa Cleanup
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 6 Feb 2003 15:20:09 -0800

On Thursday, February 6, 2003, at 01:12 PM, email@hidden wrote:

How do I know when my Cocoa application using a .nib file is about to quit so I can release my sockets.

Set NSApplication's delegate to one of your objects if you haven't done so already, and implement the following method in the delegate object:
- (void)applicationWillTerminate:(NSNotification *)aNotification

That function will then be called when the application is about to quit.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

#include <stdsignature.h>
_______________________________________________
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: 
 >Cocoa Cleanup (From: email@hidden)

  • Prev by Date: Re: Cocoa Cleanup
  • Next by Date: Re: Delegation methods from NSOpenPanel?
  • Previous by thread: Re: Cocoa Cleanup
  • Next by thread: can PC2100 for PC be used in a Mac?
  • Index(es):
    • Date
    • Thread