• 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
Getting notified when a document closes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting notified when a document closes


  • Subject: Getting notified when a document closes
  • From: Andrew White <email@hidden>
  • Date: Thu, 17 Mar 2005 14:21:04 +1100


When a document (NSDocument) closes, I want to signal all the other documents in the application (some may need to redraw windows). Is this possible / plausible? How do I do it?


The obvious way seems to be to iterate through [NSApp orderedDocuments] calling a category method. The problem I can't work out is how to find out *after* a document has closed that it has done so.

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments are confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting notified when a document closes
      • From: mmalcolm crawford <email@hidden>
    • Re: Getting notified when a document closes
      • From: James Spencer <email@hidden>
    • Re: Getting notified when a document closes
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Self-scheduling threading
  • Next by Date: Re: Self-scheduling threading
  • Previous by thread: Re: Cocoa Newbie book suggestions
  • Next by thread: Re: Getting notified when a document closes
  • Index(es):
    • Date
    • Thread