• 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: app terminate and window closing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: app terminate and window closing


  • Subject: Re: app terminate and window closing
  • From: Andreas Mayer <email@hidden>
  • Date: Fri, 18 Oct 2002 17:16:21 +0200

Am Freitag, 18.10.02 um 17:01 Uhr schrieb Scot Gellock:

Should I be subclassing NSDocumentController, since its the default app
delegate, have the subclass implement applicationShouldTerminate, which in
turn loops through the documents array, calling performClose on each
document's window controller?

It's probably cleaner (and easier) for each document to register for a NSApplicationWillTerminateNotification.

The application related notifications are listed in the documentation for NSApplication.

Now, I guess I'll have to check what I'm doing in my own code ... :}


bye. Andreas.
_______________________________________________
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: 
 >app terminate and window closing (From: Scot Gellock <email@hidden>)

  • Prev by Date: app terminate and window closing
  • Next by Date: Re: Table View and Tool Tips
  • Previous by thread: app terminate and window closing
  • Next by thread: Setting a documents application
  • Index(es):
    • Date
    • Thread